From e4ea6de6ed2cf9d2e165c2b2acb570b4f3ce4ad1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Wed, 27 Jul 2016 17:48:42 +0200 Subject: [PATCH] Add the with_separator implementation on PageBlock --- app/templates/pages/basicpage.html | 4 ++-- app/templates/pages/department.html | 6 +++--- app/templates/pages/team.html | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) 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 }}

-- 2.39.5