From: Emilie Date: Fri, 2 Sep 2016 09:35:34 +0000 (+0200) Subject: Project : template detail X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6da44ed10b78d98d071475bfe5f489dbdffaf0a1;p=mezzo.git Project : template detail --- diff --git a/app/templates/projects/project_detail.html b/app/templates/projects/project_detail.html index e69de29b..167bd37b 100644 --- a/app/templates/projects/project_detail.html +++ b/app/templates/projects/project_detail.html @@ -0,0 +1,80 @@ +{% extends "pages/page.html" %} +{% load mezzanine_tags keyword_tags i18n organization_tags %} + + +{% block page_title %} + + {% editable project.title %} +

{{ project.title }}

+ {% endeditable %} + +{% endblock %} + +{% block page_content %} + {% if project.description %} + {{ project.description }} + {% endif %} +
--------------------------------
+ {% if project.content %} + {{ project.content|richtext_filters|safe }} + {% endif %} +
--------------------------------
+ {% if project.lead_team %} + Project lead team : {{ project.lead_team }}
+ {% endif %} +
--------------------------------
+ {% if project.persons.all %} + Persons :
+ {% for person in project.persons.all %} + {{ person }}
+ {% endfor %} + {% endif %} +
--------------------------------
+ {% if project.teams.all %} + Teams :
+ {% for team in project.teams.all %} + {{ team }}
+ {% endfor %} + {% endif %} +
--------------------------------
+ {% if project.organizations.all %} + organizations :
+ {% for organization in project.organizations.all %} + {{ organization }}
+ {% endfor %} + {% endif %} +
--------------------------------
+ {% if project.website %} + website : {{ project.website }}
+ {% endif %} +{% endblock %} + +{% block page_audio %} + {% with project.audios.all as audios %} + {% if audios %} + {% include 'core/inc/audio.html' %} + {% endif %} + {% endwith %} +{% endblock %} + +{% block page_slider %} + {% with project.images.all|get_type:'page_slider' as slider_images %} + {% if slider_images %} + {% include 'core/inc/slider.html' %} + {% endif %} + {% endwith %} +{% endblock %} + +{% block page_video %} + {% with project.videos.all as videos %} + {% if videos %} + {% include 'core/inc/video.html' %} + {% endif %} + {% endwith %} +{% endblock %} + +{% block page_sub_content %} + {% with project.blocks.all as blocks %} + {% include "core/inc/block.html" %} + {% endwith %} +{% endblock %}