Commits

Anonymous committed 485b32c

trivial: show web link to tarballs.

NOTE: This won't work for zips.

Comments (0)

Files changed (1)

templates/projects/component_detail.html

       <td>
         <code>{{ component.unit.root|truncate_chars_middle:"70" }}</code></a>
         {% if component.unit.web_frontend %}<sup>(<a title="{% trans "Link to a web front-end to the source" %}" href="{{ component.unit.web_frontend }}" target="_blank" >{% trans "web" %}</a>)</sup>{% endif %}
+        {# FIXME: tar too restrictive #}
+        {% ifequal component.unit.type "tar" %}<sup>(<a title="{% trans "Link to a web front-end to the source" %}" href="{{ component.unit.root }}" target="_blank" >{% trans "web" %}</a>)</sup>{% endifequal %}
         <img class="repotype" src="{{ MEDIA_URL }}images/icons/vcs/{{ component.unit.type }}.png" alt="{{ component.unit.type }}" title="{{ component.unit.type }}" />
     </tr>
     {% if component.unit.branch %}