add lesson stubs
[edumed.git] / catalogue / templates / catalogue / snippets / section_box.html
index 84f1eda..3d265bb 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 przygotowaniu)</em>
+                        {% endif %}
                     </li>
                 {% endfor %}
             </ul>