From: Jérémy Fabre Date: Mon, 7 Nov 2016 12:06:12 +0000 (+0100) Subject: Add the participants list to teampage X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=38bc5f14054bc3f6d94f969f1116b24fc696a822;p=mezzo.git Add the participants list to teampage --- diff --git a/app/templates/pages/teampage.html b/app/templates/pages/teampage.html index 39bdfcab..646e4fdb 100644 --- a/app/templates/pages/teampage.html +++ b/app/templates/pages/teampage.html @@ -75,23 +75,30 @@ {% endblock %} {% block page_person_list %} -
-
-
- {% activity_statuses as statuses %} - {% for status in statuses %} - {% with page.teampage.team|get_team_persons:status as persons %} - {% if persons %} - {{ status.name }} : - {% for person in persons %} - {{ person.title }}{% if not forloop.last %}, {% endif %} - {% endfor %} -
- {% endif %} - {% endwith %} - {% endfor %} -
-
+ {% activity_statuses as statuses %} + {% if statuses|length > 0 %} +
+
+
+
+
+

{% trans 'Participants' %}

+ {% for status in statuses %} + {% with page.teampage.team|get_team_persons:status as persons %} + {% if persons %} + {{ status.name }} : + {% for person in persons %} + {{ person.title }}{% if not forloop.last %}, {% endif %} + {% endfor %} +
+ {% endif %} + {% endwith %} + {% endfor %} +
+
+
+
+ {% endif %} {% endblock %} @@ -104,7 +111,7 @@ {% if projects %}
-

{% trans "Research topics and related projects" %}

+

{% trans "Research topics and related projects" %}

{% include 'projects/inc/project_list.html' %}
@@ -115,7 +122,7 @@ {% if leader_projects or partner_projects %}
-

{% trans "European and national projects" %}

+

{% trans "European and national projects" %}

{% with leader_projects as projects %} {% include 'projects/inc/project_list.html' %} {% endwith %}