]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/combo/page_template_sidebar.html
misc: run manage.py with python3
[panikweb.git] / panikweb_templates / templates / combo / page_template_sidebar.html
index 7f1a03063457d5cff6ad31e0071816fbe298d852..03ceb9821bdd43ea391455e85459735d7e82e2ff 100644 (file)
                {% endif %}
                <div class="text">{% placeholder "content" %}</div>
        </div>
-       <div id="fiber-nav" class="sub rightPart custom marged">
-               {% block menu %}{% show_menu level=1 depth=2 %}{% endblock %}
+       <div class="sub rightPart custom marged">
                {% placeholder "sidebar" %}
+               <ul class="custom list">
+               {% for page in page.get_parents_and_self.0.get_children %}
+                 {% if page.public and not page.exclude_from_navigation %}
+                   {% if page.has_children and page.slug != "35-ans" %}
+                     {% for subpage in page.get_children %}
+                       {% include "combo/topik_menu_item.html" with page=subpage category=page.title only %}
+                     {% endfor %}
+                   {% else %}
+                     {% include "combo/topik_menu_item.html" with page=page category="Topik" only %}
+                   {% endif %}
+                 {% endif %}
+               {% endfor %}
+               </ul>
        </div>
 </div>