]> git.parisson.com Git - mezzo.git/commitdiff
Use status description for plural
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 15 Nov 2016 10:19:02 +0000 (11:19 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 15 Nov 2016 10:19:02 +0000 (11:19 +0100)
app/templates/agenda/event_list.html
app/templates/pages/teampage.html

index 81ff7d5811a1ab9428247795ed64f2e05dc02dfd..f82c29059af0187f8810d7d5d256e6d91e788889 100644 (file)
@@ -27,7 +27,6 @@
 
 {% block breadcrumb_menu %}
     {{ block.super }}
-
 {% endblock %}
 
 {% block main %}
index 7ab2fb4de6c7073a6528f7e3db67689fcaf2cf1d..e67e4043091d1066a47f6fdeb2718bbbe7c1cd0c 100644 (file)
                         {% for status in statuses %}
                             {% with page.teampage.team|get_team_persons:status as persons %}
                                 {% if persons %}
-                                    <strong>{{ status.name }} : </strong>
+                                    <strong>{% if persons|length == 1 %}{{ status.name }}{% else %}{{ status.description }}{% endif %} : </strong>
                                     {% for person in persons %}
                                         <a href="{% url 'organization-network-person-detail' person.slug %}">{{ person.title }}</a>{% if not forloop.last %}, {% endif %}
                                     {% endfor %}