From: Jérémy Fabre Date: Fri, 23 Sep 2016 09:34:16 +0000 (+0200) Subject: First implementation of project topic details X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2e18b86c7f018f4ea1433aaa19bcc2e01ab11080;p=mezzo.git First implementation of project topic details --- diff --git a/app/templates/pages/projecttopicpage.html b/app/templates/pages/projecttopicpage.html index 33ff146b..9e4d87f5 100644 --- a/app/templates/pages/projecttopicpage.html +++ b/app/templates/pages/projecttopicpage.html @@ -44,17 +44,37 @@ {% endif %} {% with page.projecttopicpage.project_topic as topic %} - {% for sub_topic in topic|sub_topics %} - {{ sub_topic }}
- {% trans "European and national projects" %}
- {% for project in sub_topic.projects.all|get_type:"external project" %} - {{ project }}
- {% endfor %} - {% trans "Internal projects" %}
- {% for project in sub_topic.projects.all|get_type:"internal project" %} - {{ project }}
- {% endfor %} - {% endfor %} + {% for sub_topic in topic|sub_topics %} +

{{ sub_topic }}

+ {% if sub_topic.description %} +

+ {{ sub_topic.description }} +

+ {% endif %} + {% if sub_topic.projects.all|get_type:"external project" %} +

+ {% trans "European and national projects" %} +

+ + {% endif %} + {% if sub_topic.projects.all|get_type:"internal project" %} +

+ {% trans "Internal projects" %} +

+ {% endif %} + {% endfor %} {% endwith %} {% endblock %}