]> git.parisson.com Git - mezzo.git/commitdiff
Update sub-content block in page template
authorJérémy Fabre <blackmagik88@gmail.com>
Mon, 25 Jul 2016 15:20:24 +0000 (17:20 +0200)
committerJérémy Fabre <blackmagik88@gmail.com>
Mon, 25 Jul 2016 15:20:24 +0000 (17:20 +0200)
app/templates/magazine/article/article_detail.html
app/templates/pages/page.html

index 6e12aaeab479c3218ec482ba4df16adc6f901656..5b270816b2c8a55c3b545173368bd9e8de0993aa 100644 (file)
 {% endblock %}
 
 {% block page_sub_content %}
+    {{ block.super }}
 
     {% comment %}
     Don't know why this doesn't work :(
     {% endcomment %}
+    
     {% if related_posts %}
         <h2 class="dashed dashed--center">{% trans "Also discover" %}</h2>
         {% for post in related_posts %}
index bd9daae069387adf91c6d9eca62aafce677efdab..438c391b93e55b2d871cdf25698544f7e8db49d3 100644 (file)
             <div class="container">
                 <div class="row">
                     <div class="col-sm-12">
-                        <hr class="mt0" />
-                        {% block page_sub_content %}{% endblock %}
+                        {% block page_sub_content %}
+                            {% if page.get_ascendants|length == 0 %}
+                                <hr class="mt0" />
+                            {% endif %}
+                        {% endblock %}
                     </div>
                 </div>
             </div>