only show new curriculum if present
authorJan Szejko <janek37@gmail.com>
Thu, 28 Dec 2017 08:59:43 +0000 (09:59 +0100)
committerJan Szejko <janek37@gmail.com>
Thu, 28 Dec 2017 08:59:43 +0000 (09:59 +0100)
catalogue/templates/catalogue/lesson/lesson_detail.html

index a8087bf..f313936 100755 (executable)
         <ul class="plain">
         {% curriculum object.dc.curriculum %}
         </ul>
         <ul class="plain">
         {% curriculum object.dc.curriculum %}
         </ul>
+    </section>
+    {% endif %}
+
+    {% if object.dc.curriculum_new %}
+    <section class="section-minor">
         <h1>Podstawa programowa 2017:</h1>
         <ul class="plain">
         {% curriculum object.dc.curriculum_new new=True %}
         <h1>Podstawa programowa 2017:</h1>
         <ul class="plain">
         {% curriculum object.dc.curriculum_new new=True %}