X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/e76fdcf2a2488b1787c74fe8dccfa38d7ac04c84..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 2d02b86..c505c04 100755
--- a/catalogue/templates/catalogue/snippets/section_box.html
+++ b/catalogue/templates/catalogue/snippets/section_box.html
@@ -1,19 +1,52 @@
-
-{% for level, depths in lessons.items %}
- -
-
- {% for depth, lesson_list in depths.items %}
- -
-
- {% for lesson in lesson_list %}
- -
- {{ lesson }}
-
- {% endfor %}
-
-
- {% endfor %}
-
-
+{% load thumbnail %}
+{% for level, types in lessons.items %}
+{% if level.slug == "liceum" %}
+ {{section.title}}: poziom zaawansowany
+ wrÃ³Ä do spisu treÅci
+
+{% 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 %}
+ {% if lesson_list %}
+
+ {% else %}
+ (W przygotowaniu)
+ {% endif %}
+
+ {% endfor %}
+
+ {% endspaceless %}
+
{% endfor %}
-
\ No newline at end of file