From: Jérémy Fabre Date: Mon, 3 Oct 2016 09:54:58 +0000 (+0200) Subject: Add page files template X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=39a803548bab4abdd9b11d6b1539d3411bfcd061;p=mezzo.git Add page files template --- diff --git a/app/templates/core/inc/files.html b/app/templates/core/inc/files.html index 619df9a2..8127a688 100644 --- a/app/templates/core/inc/files.html +++ b/app/templates/core/inc/files.html @@ -1,6 +1,17 @@ {% load i18n %} +

+ {% trans "Downloads" %} +

+ diff --git a/app/templates/pages/page.html b/app/templates/pages/page.html index 1cc12abc..cc2a3a4a 100644 --- a/app/templates/pages/page.html +++ b/app/templates/pages/page.html @@ -62,6 +62,13 @@ {% endif %} {% endwith %} {% endblock %} + {% block page_file %} + {% with object.files.all as files %} + {% if files %} + {% include 'core/inc/files.html' %} + {% endif %} + {% endwith %} + {% endblock %} {% block page_audio %} {% with object.audios.all as audios %} {% if audios %} @@ -90,13 +97,6 @@ {% endblock %} {% block page_person_list %} {% endblock %} - {% block page_file %} - {% with object.files.all as files %} - {% if files %} - {% include 'core/inc/files.html' %} - {% endif %} - {% endwith %} - {% endblock %} {% block products %} {% endblock %} {% block page_sub_content %}