]> git.0d.be Git - panikweb.git/blobdiff - panikweb/templates/combo/page_template_sidebar.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb / templates / combo / page_template_sidebar.html
diff --git a/panikweb/templates/combo/page_template_sidebar.html b/panikweb/templates/combo/page_template_sidebar.html
new file mode 100644 (file)
index 0000000..03ceb98
--- /dev/null
@@ -0,0 +1,40 @@
+{% extends "base.html" %}
+{% load combo %}
+
+{% block title %}{{ page.title }}{% endblock %}
+
+{% block toptitle %}
+<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 %}
+{% endblock %}
+
+{% block main %}
+
+<div class="wrapper navigation" id="main-{{page.get_parents_and_self.0.slug}}" >
+       <div id="fiber-content" class="leftPart">
+               {% if page.get_parents_and_self.0.title != page.title %}
+               <h1>{{ page.title }}</h1>
+               {% endif %}
+               <div class="text">{% placeholder "content" %}</div>
+       </div>
+       <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>
+
+{% endblock %}