From 38bc5f14054bc3f6d94f969f1116b24fc696a822 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Mon, 7 Nov 2016 13:06:12 +0100 Subject: [PATCH] Add the participants list to teampage --- app/templates/pages/teampage.html | 45 ++++++++++++++++++------------- 1 file changed, 26 insertions(+), 19 deletions(-) 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 %} -- 2.39.5