Lesson metadata on side.
[edumed.git] / catalogue / templates / catalogue / snippets / lesson_nav.html
diff --git a/catalogue/templates/catalogue/snippets/lesson_nav.html b/catalogue/templates/catalogue/snippets/lesson_nav.html
new file mode 100755 (executable)
index 0000000..742004f
--- /dev/null
@@ -0,0 +1,20 @@
+{% load url from future %}
+<h1>
+{% if root %}
+    <a href="{{ root.get_absolute_url }}">{{ root }}</a>
+{% else %}
+    <a href="{% url 'catalogue_lessons' %}">Wszystkie dziaƂy</a>
+{% endif %}
+</h1>
+
+<ul>
+{% for item in siblings %}
+    <li>
+    {% if item == lesson %}
+        <strong>{{ item }}</strong>
+    {% else %}
+        <a href="{{ item.get_absolute_url }}">{{ item }}</a>
+    {% endif %}
+    </li>
+{% endfor %}
+</ul>