Move to Django 1.5
[edumed.git] / catalogue / templates / catalogue / snippets / lesson_nav.html
1 <h1>
2 {% if root %}
3     <a href="{{ root.get_absolute_url }}">{{ root }}</a>
4 {% elif lesson.type == 'synthetic' %}
5     <a href="{% url 'catalogue_lessons' %}">Lekcje syntetyczne ze wszystkich tematów</a>
6 {% else %}
7     <a href="{% url 'catalogue_lessons' %}">Inne</a>
8 {% endif %}
9 </h1>
10
11 <ul>
12 {% for item in siblings %}
13     <li>
14     {% if item == lesson %}
15         <strong>{{ item }}</strong>
16         {% if mark_level and item.level.slug == 'liceum' %} (poziom zaawansowany){% endif %}
17     {% else %}
18         <a href="{{ item.get_absolute_url }}">{{ item }}
19             {% if mark_level and item.level.slug == 'liceum' %} (poziom zaawansowany){% endif %}
20         </a>
21     {% endif %}
22     </li>
23 {% endfor %}
24 </ul>
25
26 {% with other=lesson.get_other_level %}
27     {% if other %}
28         <p>Ten temat jest dostępny również na 
29         <a href="{% url 'catalogue_lessons' %}#{{ lesson.section.slug }}_{{ other.slug }}">poziomie
30         {% if other.slug == 'liceum' %}zaawansowanym{% else %}podstawowym{% endif %}</a>.</p>
31     {% endif %}
32 {% endwith %}