From: Guillaume Pellerin Date: Tue, 15 Nov 2016 10:19:02 +0000 (+0100) Subject: Use status description for plural X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8e252a2f48bb33a6c9636526c3f08428e6838e18;p=mezzo.git Use status description for plural --- diff --git a/app/templates/agenda/event_list.html b/app/templates/agenda/event_list.html index 81ff7d58..f82c2905 100644 --- a/app/templates/agenda/event_list.html +++ b/app/templates/agenda/event_list.html @@ -27,7 +27,6 @@ {% block breadcrumb_menu %} {{ block.super }} - {% endblock %} {% block main %} diff --git a/app/templates/pages/teampage.html b/app/templates/pages/teampage.html index 7ab2fb4d..e67e4043 100644 --- a/app/templates/pages/teampage.html +++ b/app/templates/pages/teampage.html @@ -129,7 +129,7 @@ {% for status in statuses %} {% with page.teampage.team|get_team_persons:status as persons %} {% if persons %} - {{ status.name }} : + {% if persons|length == 1 %}{{ status.name }}{% else %}{{ status.description }}{% endif %} : {% for person in persons %} {{ person.title }}{% if not forloop.last %}, {% endif %} {% endfor %}