Move to Django 1.5
[edumed.git] / catalogue / templates / catalogue / snippets / lesson_nav.html
index a2ff5ba..fa9d8ad 100755 (executable)
@@ -1,4 +1,3 @@
-{% load url from future %}
 <h1>
 {% if root %}
     <a href="{{ root.get_absolute_url }}">{{ root }}</a>
     </li>
 {% endfor %}
 </ul>
+
+{% with other=lesson.get_other_level %}
+    {% if other %}
+        <p>Ten temat jest dostępny również na 
+        <a href="{% url 'catalogue_lessons' %}#{{ lesson.section.slug }}_{{ other.slug }}">poziomie
+        {% if other.slug == 'liceum' %}zaawansowanym{% else %}podstawowym{% endif %}</a>.</p>
+    {% endif %}
+{% endwith %}