]> git.parisson.com Git - mezzo.git/commitdiff
Add the with_separator implementation on PageBlock
authorJérémy Fabre <blackmagik88@gmail.com>
Wed, 27 Jul 2016 15:48:42 +0000 (17:48 +0200)
committerJérémy Fabre <blackmagik88@gmail.com>
Wed, 27 Jul 2016 15:48:42 +0000 (17:48 +0200)
app/templates/pages/basicpage.html
app/templates/pages/department.html
app/templates/pages/team.html

index 3b72547511fc5064c8ddc09eb09424d76a8e4c8c..a8e162c83f464d2be0ea0074332f1181d298960b 100644 (file)
@@ -72,8 +72,8 @@
                             <hr class="mt0" />
                             {% for pageblock in page.basicpage.pageblock_set.all %}
                                 <div class="row" data-summary-content>
-                                    <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2 white-bg" data-summary-content>
-                                        {% if not forloop.first %}
+                                    <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2 white-bg">
+                                        {% if not forloop.first and pageblock.with_separator %}
                                             <hr />
                                         {% endif %}
                                         <h2 class="dotted">{{ pageblock.title }}</h2>
index 2421ff4b14094124a953b3d373cd4981e43ad747..fdf679ddff22e346be0b082b5b280eb659a91207 100644 (file)
@@ -92,9 +92,9 @@
                         {% block page_sub_content %}
                             <hr class="mt0" />
                             {% for pageblock in page.department.pageblock_set.all %}
-                                <div class="row">
-                                    <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2 white-bg" data-summary-content>
-                                        {% if not forloop.first %}
+                                <div class="row" data-summary-content>
+                                    <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2 white-bg">
+                                        {% if not forloop.first and pageblock.with_separator %}
                                             <hr />
                                         {% endif %}
                                         <h2 class="dotted">{{ pageblock.title }}</h2>
index 98562cbf1049e210c54b82d4a8c9c6d746951d71..5dbf4890f74c5feee6d4b42a1a1cddfec6771e35 100644 (file)
@@ -88,9 +88,9 @@
                         {% block page_sub_content %}
                             <hr class="mt0" />
                             {% for pageblock in page.team.pageblock_set.all %}
-                                <div class="row">
-                                    <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2 white-bg" data-summary-content>
-                                        {% if not forloop.first %}
+                                <div class="row" data-summary-content>
+                                    <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2 white-bg">
+                                        {% if not forloop.first and pageblock.with_separator %}
                                             <hr />
                                         {% endif %}
                                         <h2 class="dotted">{{ pageblock.title }}</h2>