new curriculum
authorJan Szejko <janek37@gmail.com>
Mon, 11 Dec 2017 14:08:59 +0000 (15:08 +0100)
committerJan Szejko <janek37@gmail.com>
Mon, 11 Dec 2017 14:08:59 +0000 (15:08 +0100)
catalogue/templates/catalogue/lesson/lesson_detail.html
curriculum/templates/curriculum/snippets/curriculum.html
curriculum/templatetags/curriculum_tags.py
lib/librarian

index 3da0600..812cbc7 100755 (executable)
         <ul class="plain">
         {% curriculum object.dc.curriculum %}
         </ul>
+        <h1>Nowa podstawa programowa:</h1>
+        <ul class="plain">
+        {% curriculum object.dc.curriculum_new new=True %}
+        </ul>
     </section>
     {% endif %}
 
index ea4f3fb..467c3f3 100755 (executable)
@@ -1,7 +1,7 @@
 {% if currset %}
     {% for what, types in currset.items %}
         <li>
-            {{ what.0 }}, {{ what.1 }} poziom edukacyjny<br/>
+            {{ what.0 }}, {{ what.1 }} {% if new %}klasa{% else %}poziom edukacyjny{% endif %}<br/>
             {% for type, currs in types.items %}
                 {{ type }}:<br>
                 {% for curr in currs %}
index 983ceac..f3e9279 100755 (executable)
@@ -21,7 +21,7 @@ def competence(texts, level):
 
 
 @register.inclusion_tag("curriculum/snippets/curriculum.html")
-def curriculum(identifiers):
+def curriculum(identifiers, new=False):
     # shouldn't be needed, but is
     identifiers = [id for id in identifiers if id]
     try:
@@ -42,6 +42,7 @@ def curriculum(identifiers):
 
     return {
         'currset': currset,
+        'new': new,
     }
     
 
index 6c528bc..482477c 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 6c528bcbd5a184387bbb30500b67caef8a21889d
+Subproject commit 482477cced586463d7f342cdde8482a4d97d7685