From 0fd4ebb0a1f3260d729f6c1ecb08b58c886c1236 Mon Sep 17 00:00:00 2001 From: Andreas Loupasakis Date: Mon, 13 Sep 2010 16:49:32 +0300 Subject: [PATCH] Fixed resources summary in projects_list.html --- transifex/templates/projects/project_list.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/transifex/templates/projects/project_list.html b/transifex/templates/projects/project_list.html index 6cd974518..c86872f8a 100644 --- a/transifex/templates/projects/project_list.html +++ b/transifex/templates/projects/project_list.html @@ -47,9 +47,16 @@

{{ project.name }}

{{ project.description }}

- - {% for resource in project.resources.all|slice:"0:4" %}{{ resource.name }} {% endfor %} + {% with project.resources.all|slice:"0:4" as resources %} + {% if resources %} + {% trans "Resources:" %} + {% for resource in resources %} + {{ resource.name }} + {% if not forloop.last %},{% endif %} + {% endfor %} + {% endif %} + {% endwith %} {% if project.tags %}| {% trans "Tags:" %} {% for tag in project.tagsobj.all|slice:"0:6" %}{{ tag }} {% endfor %}{% endif %}