]> git.parisson.com Git - mezzo.git/commitdiff
Fix logos
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 22 Sep 2016 13:43:08 +0000 (15:43 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 22 Sep 2016 13:43:08 +0000 (15:43 +0200)
app/templates/projects/project_detail.html

index da5eb160be7d4aa7395c9363db24454bd297bf4c..56d2b15d41da10617d597b8947e290f90e29abf2 100644 (file)
     {% if project.program %}
       {% trans "Program" %} {{ project.program }}<br>
     {% endif %}
+
     {% if project.program_type %}
       {% trans "Program type" %} {{ project.program_type }}<br>
     {% endif %}
+
     {% trans "Beginning" % } {{ project.date_from }}<br>
     {% trans "End" % } {{ project.date_to }}<br>
     {% trans "Status" % } {{ project.project_status }}<br>
+
     {% if project.website %}
       {% trans "Website" %} {{ project.website }}<br>
     {% endif %}
+
+    {% with project.images.all|get_type:'logo' as images %}
+      {% include 'core/inc/logo.html' %}
+    {% endwith %}
   </div>
   <div>
     {% trans "Participants" %}
+
     {% if project.lead_team %}
       {% trans "Project lead team"%} {{ project.lead_team }}<br>
     {% endif %}
+
     {% trans "Partners" %}
-    {% if project.teams.all %}
-      {% trans "Partners" %}<br>
-      {% for team in project.teams.all %}
-        {{ team }}<br>
-      {% endfor %}
-      {% for organization in project.organizations.all %}
-        {{ organization }}<br>
-      {% endfor %}
-    {% endif %}
+
+    {% for team in project.teams.all %}
+      {{ team }}<br>
+    {% endfor %}
+    {% for organization in project.organizations.all %}
+      {{ organization }}<br>
+    {% endfor %}
   </div>
 </div>
 {% endblock project_details %}
 
 {% block logo %}
 {% for organization in project.organizations.all %}
-  {% with project.images.all|get_type:'logo' as images %}
+  {% with organization.images.all|get_type:'logo' as images %}
     {% include 'core/inc/logo.html' %}
   {% endwith %}
 {% endfor %}