From 62378c62a0d52bde5aff84b17c934dfb9d438317 Mon Sep 17 00:00:00 2001 From: Emilie Date: Thu, 15 Sep 2016 12:27:24 +0200 Subject: [PATCH] CustomPage, DepartmentPage, TeamPage: add logo at bottom of the page --- app/templates/core/inc/logo.html | 8 ++++++++ app/templates/pages/custompage.html | 6 ++++++ app/templates/pages/departmentpage.html | 6 ++++++ app/templates/pages/page.html | 2 ++ app/templates/pages/teampage.html | 5 +++++ 5 files changed, 27 insertions(+) create mode 100644 app/templates/core/inc/logo.html diff --git a/app/templates/core/inc/logo.html b/app/templates/core/inc/logo.html new file mode 100644 index 00000000..9baae88e --- /dev/null +++ b/app/templates/core/inc/logo.html @@ -0,0 +1,8 @@ +{% load mezzanine_tags %} +{% if images %} + +{% endif %} diff --git a/app/templates/pages/custompage.html b/app/templates/pages/custompage.html index d56a6ef7..6341e50f 100644 --- a/app/templates/pages/custompage.html +++ b/app/templates/pages/custompage.html @@ -95,3 +95,9 @@ {% include "core/inc/block.html" %} {% endwith %} {% endblock %} + +{% block logo %} + {% with page.custompage.images.all|get_type:'logo' as images %} + {% include 'core/inc/logo.html' %} + {% endwith %} +{% endblock %} diff --git a/app/templates/pages/departmentpage.html b/app/templates/pages/departmentpage.html index ee2a6926..18698fd4 100644 --- a/app/templates/pages/departmentpage.html +++ b/app/templates/pages/departmentpage.html @@ -104,3 +104,9 @@ {% endif %} {% endblock %} + +{% block logo %} + {% with page.departmentpage.images.all|get_type:'logo' as images %} + {% include 'core/inc/logo.html' %} + {% endwith %} +{% endblock %} diff --git a/app/templates/pages/page.html b/app/templates/pages/page.html index a1c57863..06a6ccf2 100644 --- a/app/templates/pages/page.html +++ b/app/templates/pages/page.html @@ -73,5 +73,7 @@ {% endblock %} {% block related_project %} {% endblock %} + {% block logo %} + {% endblock %} {% endblock %} diff --git a/app/templates/pages/teampage.html b/app/templates/pages/teampage.html index 7560e1ba..2a8e2fba 100644 --- a/app/templates/pages/teampage.html +++ b/app/templates/pages/teampage.html @@ -107,5 +107,10 @@ {% include 'projects/project_list.html' %} {% endwith %} {% endif %} +{% endblock %} +{% block logo %} + {% with page.teampage.images.all|get_type:'logo' as images %} + {% include 'core/inc/logo.html' %} + {% endwith %} {% endblock %} -- 2.39.5