]> 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 52f18766681abfaa65ac354667a23bf487ea8cea..03ceb9821bdd43ea391455e85459735d7e82e2ff 100644 (file)
@@ -4,7 +4,7 @@
 {% block title %}{{ page.title }}{% endblock %}
 
 {% block toptitle %}
-<h1 class="top"><a href="{{ page.get_parents_and_self.0.get_online_url }}">{{ page.get_parents_and_self.0.title }}</a></h1>
+<h1 class="top bg-title"><a href="{{ page.get_parents_and_self.0.get_online_url }}">{{ page.get_parents_and_self.0.title }}</a></h1>
 {% endblock %}
 
 {% block nav %}
                {% 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>