From: Jérémy Fabre Date: Wed, 27 Jul 2016 15:48:42 +0000 (+0200) Subject: Add the with_separator implementation on PageBlock X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e4ea6de6ed2cf9d2e165c2b2acb570b4f3ce4ad1;p=mezzo.git Add the with_separator implementation on PageBlock --- diff --git a/app/templates/pages/basicpage.html b/app/templates/pages/basicpage.html index 3b725475..a8e162c8 100644 --- a/app/templates/pages/basicpage.html +++ b/app/templates/pages/basicpage.html @@ -72,8 +72,8 @@
{% for pageblock in page.basicpage.pageblock_set.all %}
-
- {% if not forloop.first %} +
+ {% if not forloop.first and pageblock.with_separator %}
{% endif %}

{{ pageblock.title }}

diff --git a/app/templates/pages/department.html b/app/templates/pages/department.html index 2421ff4b..fdf679dd 100644 --- a/app/templates/pages/department.html +++ b/app/templates/pages/department.html @@ -92,9 +92,9 @@ {% block page_sub_content %}
{% for pageblock in page.department.pageblock_set.all %} -
-
- {% if not forloop.first %} +
+
+ {% if not forloop.first and pageblock.with_separator %}
{% endif %}

{{ pageblock.title }}

diff --git a/app/templates/pages/team.html b/app/templates/pages/team.html index 98562cbf..5dbf4890 100644 --- a/app/templates/pages/team.html +++ b/app/templates/pages/team.html @@ -88,9 +88,9 @@ {% block page_sub_content %}
{% for pageblock in page.team.pageblock_set.all %} -
-
- {% if not forloop.first %} +
+
+ {% if not forloop.first and pageblock.with_separator %}
{% endif %}

{{ pageblock.title }}