]> git.parisson.com Git - mezzo.git/commitdiff
Add the summary links on the primary pages if the page has no children
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 20 Sep 2016 08:15:51 +0000 (10:15 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 20 Sep 2016 08:15:51 +0000 (10:15 +0200)
app/templates/pages/menus/current_tree_primary.html

index 9e503188a27ec83be12ccae286390cf10a4bf655..c3efe733b66cae2e76949efc931916d687bfacbe 100644 (file)
                         {% page_menu page %}
                     </ul>
                 {% endif %}
+                {% if page.is_current_or_ascendant and not page.has_children_in_menu%}
+                    <ul class="nav-tree" data-summary>
+                        {% include "pages/menus/current_tree_summary.html" %}
+                    </ul>
+                {% endif %}
             </li>
         {% endfor %}
     {% endif %}