From: Jérémy Fabre Date: Mon, 24 Oct 2016 12:54:41 +0000 (+0200) Subject: Fix the white background on pages X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=68726e77315d620f83d9f869391c862f2ea98279;p=mezzo.git Fix the white background on pages --- diff --git a/app/templates/pages/departmentpage.html b/app/templates/pages/departmentpage.html index 277f0b6c..2619c233 100644 --- a/app/templates/pages/departmentpage.html +++ b/app/templates/pages/departmentpage.html @@ -69,22 +69,24 @@ {% block page_related_content %} {% if page.departmentpage.department.articles.all %}
-
-
-
-

{% trans "Also discover" %}

-
-
-
- {% for article in page.departmentpage.department.articles.all %} -
- {% include 'magazine/article/includes/article_card.html' %} +
+
+
+
+
+

{% trans "Also discover" %}

- {% endfor %} +
+
+ {% for article in page.departmentpage.department.articles.all %} +
+ {% include 'magazine/article/includes/article_card.html' %} +
+ {% endfor %} +
- {% endif %} {% endblock %} @@ -92,8 +94,8 @@ {% block logo %} {% with page.departmentpage.images.all|get_type:'logo' as images %} {% if images %} -
-
+
+
diff --git a/app/templates/pages/page.html b/app/templates/pages/page.html index 1ec18301..40d89fc6 100644 --- a/app/templates/pages/page.html +++ b/app/templates/pages/page.html @@ -106,32 +106,35 @@ {% endfor %} {% endblock %} - {% block page_person_list %} - {% endblock %} +
- {% block page_sub_content %} - {% with object.blocks.all as blocks %} - {% include "core/inc/block.html" %} - {% endwith %} - {% endblock %} + {% block page_person_list %} + {% endblock %} - {% block related_project %} - {% endblock %} + {% block page_sub_content %} + {% with object.blocks.all as blocks %} + {% include "core/inc/block.html" %} + {% endwith %} + {% endblock %} - {% block products %} - {% endblock %} + {% block related_project %} + {% endblock %} - {% block logo %} - {% endblock %} -
+ {% block products %} + {% endblock %} -
+ {% block logo %} + {% endblock %} + + {% block page_related_content %} + {% with page.dynamic_content_pages.all as dynamic_content %} + {% include "core/inc/related_content.html" %} + {% endwith %} + {% endblock %} + +
- {% block page_related_content %} - {% with page.dynamic_content_pages.all as dynamic_content %} - {% include "core/inc/related_content.html" %} - {% endwith %} - {% endblock %}
+ {% endblock %}