From: Jérémy Fabre Date: Tue, 26 Jul 2016 14:32:56 +0000 (+0200) Subject: Add pageblocks to basicpage X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d0ab67c04956452da3032cb4080496fa91937767;p=mezzo.git Add pageblocks to basicpage --- diff --git a/app/templates/pages/basicpage.html b/app/templates/pages/basicpage.html index e0c36307..917b90f1 100644 --- a/app/templates/pages/basicpage.html +++ b/app/templates/pages/basicpage.html @@ -50,18 +50,25 @@ {% block main %} {{ block.super }} -
-
-
-
- {% block page_sub_content %} - {% if page.get_ascendants|length == 0 %} + {% if page.basicpage.pageblock_set.all %} +
+
+
+
+ {% block page_sub_content %}
- {% endif %} - {% endblock %} + {% for pageblock in page.basicpage.pageblock_set.all %} +
+
+

{{ pageblock.title }}

+ {{ pageblock.content|richtext_filters|safe }} +
+
+ {% endfor %} + {% endblock %} +
-
- + {% endif %} {% endblock %}