X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/dfcf9b11ca2fc3173a3b6925198836b6ddaaa61c..4d0e6b0b3f32591d2c9c3c3af85b1ffc289cfa4d:/catalogue/templates/catalogue/snippets/section_box.html diff --git a/catalogue/templates/catalogue/snippets/section_box.html b/catalogue/templates/catalogue/snippets/section_box.html index 3d265bb..c505c04 100755 --- a/catalogue/templates/catalogue/snippets/section_box.html +++ b/catalogue/templates/catalogue/snippets/section_box.html @@ -1,3 +1,4 @@ +{% load thumbnail %} {% for level, types in lessons.items %} {% if level.slug == "liceum" %}

{{section.title}}: poziom zaawansowany @@ -6,10 +7,23 @@ {% endif %}

{% spaceless %} +
{% for lesson_type, lesson_list in types.items %} + {% if lesson_type == 'project' %} +
+ {% endif %}
{% if lesson_type == 'synthetic' %} + {% if section.image %} + {% thumbnail section.image "120x160" as im %} + + + + {% endthumbnail %} + {% endif %}

Lekcja syntetyczna

+ {% elif lesson_type == 'project' %} +

Projekt

{% else %}

Pełny kurs

{% endif %} @@ -22,7 +36,7 @@
(przegląd całego tematu w 45 minut) {% endif %} {% else %} - {{ lesson }} (w przygotowaniu) + {{ lesson }} (w przygotowaniu) {% endif %} {% endfor %} @@ -32,6 +46,7 @@ {% endif %}
{% endfor %} +
{% endspaceless %}
{% endfor %}