Prepared for SP 4-6.
[edumed.git] / catalogue / templates / catalogue / snippets / lesson_nav.html
index 742004f..d2bcf48 100755 (executable)
@@ -1,9 +1,12 @@
-{% load url from future %}
 <h1>
 {% if root %}
-    <a href="{{ root.get_absolute_url }}">{{ root }}</a>
+    <a href="{{ root.get_absolute_url }}">{{ root }}, <br>{{ lesson.level }}</a>
+{% elif lesson.type == 'synthetic' %}
+    <a href="{% url 'catalogue_lessons' %}">Kurs skrócony, <br>{{ lesson.level }}</a>
+{% elif lesson.type == 'project' %}
+    <a href="{% url 'catalogue_lessons' %}">Projekty, <br>{{ lesson.level }}</a>
 {% else %}
-    <a href="{% url 'catalogue_lessons' %}">Wszystkie działy</a>
+    <a href="{% url 'catalogue_lessons' %}">Inne</a>
 {% endif %}
 </h1>