From 0500c9d4e5b3dd32684a323351e5160306da2de2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Mon, 10 Oct 2016 15:31:26 +0200 Subject: [PATCH] Update project list template --- app/templates/pages/teampage.html | 44 ++++++++++++++++++------------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/app/templates/pages/teampage.html b/app/templates/pages/teampage.html index 6cea12a8..95ca377f 100644 --- a/app/templates/pages/teampage.html +++ b/app/templates/pages/teampage.html @@ -107,24 +107,32 @@ {% block related_project %} {% if page.teampage.team.leader_projects.all or page.teampage.team.partner_projects.all %} -
-

{% trans "European and national projects" %}

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

{% trans "Products" %}

- {% for page_product_list in page.teampage.product_lists.all %} - {% with page_product_list.list as list %} - {% with "shop/includes/product_list_"|add:list.style|add:"_style.html" as template %} - {% include template %} - {% endwith %} - {% endwith %} - {% endfor %} - {% endif %} +
+
+
+
+
+

{% trans "European and national projects" %}

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

{% trans "Products" %}

+ {% for page_product_list in page.teampage.product_lists.all %} + {% with page_product_list.list as list %} + {% with "shop/includes/product_list_"|add:list.style|add:"_style.html" as template %} + {% include template %} + {% endwith %} + {% endwith %} + {% endfor %} + {% endif %} +
{% endif %} {% endblock %} -- 2.39.5