Commits

Anonymous committed 05883fe

trivial: Truncate repo root URL to 70 characters.

Comments (0)

Files changed (2)

site_media/images/icons/vcs/tar.png

Old
Old image
New
New image

templates/projects/component_detail.html

 {% load statistics %}
 {% load markup %}
 {% load i18n %}
+{% load truncate %}
 
 {% block extra_head %}
   <script type="text/javascript" src="{{ MEDIA_URL }}js/file_submit.js"></script>
     <tr>
       <th class="repository i16">{% trans "Repository:" %}</th>
       <td>
-        <code>{{ component.unit.root }}</code></a>
+        <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 %}
         <img class="repotype" src="{{ MEDIA_URL }}images/icons/vcs/{{ component.unit.type }}.png" alt="{{ component.unit.type }}" title="{{ component.unit.type }}" />
     </tr>