From: Jérémy Fabre Date: Tue, 20 Sep 2016 08:15:51 +0000 (+0200) Subject: Add the summary links on the primary pages if the page has no children X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=bbe7bd6579e5de8d46ac3e467b01ed0a6f3e07cb;p=mezzo.git Add the summary links on the primary pages if the page has no children --- diff --git a/app/templates/pages/menus/current_tree_primary.html b/app/templates/pages/menus/current_tree_primary.html index 9e503188..c3efe733 100644 --- a/app/templates/pages/menus/current_tree_primary.html +++ b/app/templates/pages/menus/current_tree_primary.html @@ -31,6 +31,11 @@ {% page_menu page %} {% endif %} + {% if page.is_current_or_ascendant and not page.has_children_in_menu%} + + {% endif %} {% endfor %} {% endif %}