Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
Fixed resources summary in projects_list.html
Browse files Browse the repository at this point in the history
  • Loading branch information
alup committed Sep 13, 2010
1 parent cef4653 commit 0fd4ebb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions transifex/templates/projects/project_list.html
Expand Up @@ -47,9 +47,16 @@ <h2 class="pagetitle">
<h3 class="name"><a href="{{ project.get_absolute_url }}">{{ project.name }}</a></h3>
<p class="description">{{ project.description }}</p>
<p>
<span class="i16 resource compact">
{% for resource in project.resources.all|slice:"0:4" %}<a class="resource" title="{% firstof resource.description|escape resource.name|escape %}" href="{{ resource.get_absolute_url }}">{{ resource.name }}</a> {% endfor %}
{% with project.resources.all|slice:"0:4" as resources %}
{% if resources %}
<span class="i16 resource compact">{% trans "Resources:" %}
{% for resource in resources %}
<a class="resource" title="{% firstof resource.description|escape resource.name|escape %}" href="{{ resource.get_absolute_url }}">{{ resource.name }}</a>
{% if not forloop.last %},{% endif %}
{% endfor %}
</span>
{% endif %}
{% endwith %}
{% if project.tags %}| <span class="i16 tag compact">{% trans "Tags:" %} {% for tag in project.tagsobj.all|slice:"0:6" %}<a class="tag" href="{% url project_tag_list tag=tag %}">{{ tag }}</a> {% endfor %}</span>{% endif %}
</p>

Expand Down

0 comments on commit 0fd4ebb

Please sign in to comment.