Various minor changes
[edumed.git] / catalogue / templates / catalogue / snippets / section_box.html
1 {% for level, types in lessons.items %}
2 {% if level.slug == "liceum" %}
3     <p><strong>{{section.title}}</strong>: poziom zaawansowany
4         <span class="section-links"><a href="#top">wróć do spisu treści</a></span>
5     </p>
6 {% endif %}
7 <section id="{{ section.slug }}_{{ level.slug }}" class="section-level section-level-{{ level.slug }}">
8     {% spaceless %}
9     {% for lesson_type, lesson_list in types.items %}
10         <section class="section-type section-type-{{ lesson_type }}">
11             {% if lesson_type == 'synthetic' %}
12                 <h1>Lekcja syntetyczna</h1>
13             {% else %}
14                 <h1>Pełny kurs</h1>
15             {% endif %}
16             {% if lesson_list %}
17             <ul class="section-lessons link-list">
18                 {% for lesson in lesson_list %}
19                     <li class="section-lesson">
20                         <a href="{{ lesson.get_absolute_url }}">{{ lesson }}{% if lesson_type == 'synthetic' %}
21                             <br/>(przegląd całego tematu w 45 minut)
22                         {% endif %}</a>
23                     </li>
24                 {% endfor %}
25             </ul>
26             {% else %}
27                 <p>(W przygotowaniu)</p>
28             {% endif %}
29         </section>
30     {% endfor %}
31     {% endspaceless %}
32 </section>
33 {% endfor %}