]> git.parisson.com Git - mezzo.git/commitdiff
fix footer
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 9 Mar 2016 23:26:28 +0000 (00:26 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 9 Mar 2016 23:26:28 +0000 (00:26 +0100)
app/templates/pages/menus/footer.html

index 4cbb6a820a3c1eda288b17ad377981aac48035ba..9d0e3d258d539f80806cc7129bd9bbc5c4ac20e5 100644 (file)
@@ -1,37 +1,33 @@
 {% load i18n pages_tags %}
-{% spaceless %}
+{% get_language_info_list for LANGUAGES as languages %}
 
+{% spaceless %}
 {% if page_branch_in_menu %}
     {% for page in page_branch %}
         {% if page.is_primary %}
             {% if forloop.first %}
-            <div class="nav__footer">
-            <ul class="nav__footer__list  list-inline">
+                <div class="nav__footer">
+                <ul class="nav__footer__list  list-inline">
             {% endif %}
-
             {% if page.in_menu %}
-            {# <ul class="list-unstyled"> #}
+                {# <ul class="list-unstyled"> #}
             {% endif %}
-            {% endif %}
-
-            {% if page.in_menu %}
+        {% endif %}
+        {% if page.in_menu %}
             {% if forloop.first and not page.parent.in_menu and not page.is_primary %}
             {% endif %}
             <li class="nav__footer__item {% if page.is_current_or_ascendant %}is-active{% endif %}" id="footer-menu-{{ page.html_id }}">
                 <a class="nav__footer__item__link" href="{{ page.get_absolute_url }}">{{ page.title }}</a>
             </li>
-            {% endif %}
-
-            {% if page.in_menu and page.has_children_in_menu %}{% page_menu page %}{% endif %}
-
-            {% if page.in_menu %}
+        {% endif %}
+        {% if page.in_menu and page.has_children_in_menu %}{% page_menu page %}{% endif %}
+        {% if page.in_menu %}
             {% if forloop.first and not page.parent.in_menu and not page.is_primary %}
             {# </li> #}
             {% endif %}
             {# </ul> #}
-            {% endif %}
-
-            {% if page.is_primary %}
+        {% endif %}
+        {% if page.is_primary %}
             {% if page.in_menu %}
             {# </ul> #}
             {% endif %}
@@ -40,7 +36,6 @@
             </div>
             {% endif %}
         {% endif %}
-
     {% endfor %}
 {% endif %}
 {% endspaceless %}