]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/combo/page_template_sidebar.html
topiks: display top page name as meta in sidebar
[panikweb.git] / panikweb_templates / templates / combo / page_template_sidebar.html
1 {% extends "base.html" %}
2 {% load combo %}
3
4 {% block title %}{{ page.title }}{% endblock %}
5
6 {% block toptitle %}
7 <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>
8 {% endblock %}
9
10 {% block nav %}
11 {% endblock %}
12
13 {% block main %}
14
15 <div class="wrapper navigation" id="main-{{page.get_parents_and_self.0.slug}}" >
16         <div id="fiber-content" class="leftPart">
17                 {% if page.get_parents_and_self.0.title != page.title %}
18                 <h1>{{ page.title }}</h1>
19                 {% endif %}
20                 <div class="text">{% placeholder "content" %}</div>
21         </div>
22         <div class="sub rightPart custom marged">
23                 <ul class="custom list">
24                 {% for page in page.get_parents_and_self.0.get_children %}
25                   {% if page.public and not page.exclude_from_navigation %}
26                     {% if page.has_children %}
27                       {% for subpage in page.get_children %}
28                         {% include "combo/topik_menu_item.html" with page=subpage category=page.title only %}
29                       {% endfor %}
30                     {% else %}
31                       {% include "combo/topik_menu_item.html" with page=page category="Topik" only %}
32                     {% endif %}
33                   {% endif %}
34                 {% endfor %}
35                 </ul>
36                 {% placeholder "sidebar" %}
37         </div>
38 </div>
39
40 {% endblock %}