minor fix
[edumed.git] / catalogue / templates / catalogue / snippets / section_box.html
index 84f1eda..271b6c6 100755 (executable)
             <ul class="section-lessons link-list">
                 {% for lesson in lesson_list %}
                     <li class="section-lesson">
-                        <a href="{{ lesson.get_absolute_url }}">{{ lesson }}{% if lesson_type == 'synthetic' %}
-                            <br/>(przegląd całego tematu w 45 minut)
-                        {% endif %}</a>
+                        {% if lesson.slug %}
+                            <a href="{{ lesson.get_absolute_url }}">{{ lesson }}{% if lesson_type == 'synthetic' %}
+                                <br/>(przegląd całego tematu w 45 minut)
+                            {% endif %}</a>
+                        {% else %}
+                            {{ lesson }} <em>(w&nbsp;przygotowaniu)</em>
+                        {% endif %}
                     </li>
                 {% endfor %}
             </ul>