]> git.0d.be Git - panikweb-esperanzah.git/blob - panikweb/templates/combo/page_template_sidebar.html
settings: declare PROJECT_PATH
[panikweb-esperanzah.git] / panikweb / 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                 {% placeholder "sidebar" %}
24                 <ul class="custom list">
25                 {% for page in page.get_parents_and_self.0.get_children %}
26                   {% if page.public and not page.exclude_from_navigation %}
27                     {% if page.has_children and page.slug != "35-ans" %}
28                       {% for subpage in page.get_children %}
29                         {% include "combo/topik_menu_item.html" with page=subpage category=page.title only %}
30                       {% endfor %}
31                     {% else %}
32                       {% include "combo/topik_menu_item.html" with page=page category="Topik" only %}
33                     {% endif %}
34                   {% endif %}
35                 {% endfor %}
36                 </ul>
37         </div>
38 </div>
39
40 {% endblock %}