Add project as course type.
[edumed.git] / catalogue / templates / catalogue / snippets / section_box.html
index 84f1eda..bbca27a 100755 (executable)
@@ -10,6 +10,8 @@
         <section class="section-type section-type-{{ lesson_type }}">
             {% if lesson_type == 'synthetic' %}
                 <h1>Lekcja syntetyczna</h1>
+            {% elif lesson_type == 'project' %}
+                <h1>Projekt</h1>
             {% else %}
                 <h1>Pełny kurs</h1>
             {% endif %}
             <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>