From: Emilie Date: Wed, 26 Oct 2016 09:56:13 +0000 (+0200) Subject: Task #308: display projects if exist X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=dee468d9dafeed238e4aff254f1f54642d4db62b;p=mezzo.git Task #308: display projects if exist --- diff --git a/app/templates/pages/teampage.html b/app/templates/pages/teampage.html index 360db78e..de3ea921 100644 --- a/app/templates/pages/teampage.html +++ b/app/templates/pages/teampage.html @@ -87,25 +87,33 @@

-
-
-

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

- {% with page.teampage.team.partner_projects.all|get_type:"internal" as projects %} - {% include 'projects/inc/project_list.html' %} - {% endwith %} -
-
+ {% with page.teampage.team.partner_projects.all|get_type:"internal" as projects %} + {% if projects %} +
+
+

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

+ {% include 'projects/inc/project_list.html' %} +
+
+ {% endif %} + {% endwith %} + {% with page.teampage.team.leader_projects.all|get_type:"external" as leader_projects %} + {% with page.teampage.team.partner_projects.all|get_type:"external" as partner_projects %} + {% if leader_projects or partner_projects %}

{% trans "European and national projects" %}

- {% with page.teampage.team.leader_projects.all|get_type:"external" as projects %} + {% with leader_projects as projects %} {% include 'projects/inc/project_list.html' %} {% endwith %} - {% with page.teampage.team.partner_projects.all|get_type:"external" as projects %} + {% with partner_projects as projects %} {% include 'projects/inc/project_list.html' %} {% endwith %}
+ {% endif %} + {% endwith %} + {% endwith %}
{% endif %}