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