From 39a803548bab4abdd9b11d6b1539d3411bfcd061 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Mon, 3 Oct 2016 11:54:58 +0200 Subject: [PATCH] Add page files template --- app/templates/core/inc/files.html | 17 ++++++++++++++--- app/templates/pages/page.html | 14 +++++++------- 2 files changed, 21 insertions(+), 10 deletions(-) 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 %} -- 2.39.5