From 1058331a4335bf967a8da8b0b1de2a78a35fea92 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 22 Sep 2016 15:43:08 +0200 Subject: [PATCH] Fix logos --- app/templates/projects/project_detail.html | 27 ++++++++++++++-------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/app/templates/projects/project_detail.html b/app/templates/projects/project_detail.html index da5eb160..56d2b15d 100644 --- a/app/templates/projects/project_detail.html +++ b/app/templates/projects/project_detail.html @@ -58,38 +58,45 @@ {% if project.program %} {% trans "Program" %} {{ project.program }}
{% endif %} + {% if project.program_type %} {% trans "Program type" %} {{ project.program_type }}
{% endif %} + {% trans "Beginning" % } {{ project.date_from }}
{% trans "End" % } {{ project.date_to }}
{% trans "Status" % } {{ project.project_status }}
+ {% if project.website %} {% trans "Website" %} {{ project.website }}
{% endif %} + + {% with project.images.all|get_type:'logo' as images %} + {% include 'core/inc/logo.html' %} + {% endwith %}
{% trans "Participants" %} + {% if project.lead_team %} {% trans "Project lead team"%} {{ project.lead_team }}
{% endif %} + {% trans "Partners" %} - {% if project.teams.all %} - {% trans "Partners" %}
- {% for team in project.teams.all %} - {{ team }}
- {% endfor %} - {% for organization in project.organizations.all %} - {{ organization }}
- {% endfor %} - {% endif %} + + {% for team in project.teams.all %} + {{ team }}
+ {% endfor %} + {% for organization in project.organizations.all %} + {{ organization }}
+ {% endfor %}
{% 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 %} -- 2.39.5