]> git.parisson.com Git - teleforma.git/commitdiff
Remove test on type counter
authorYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 7 Feb 2022 12:28:01 +0000 (13:28 +0100)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 7 Feb 2022 12:28:01 +0000 (13:28 +0100)
teleforma/templates/teleforma/course_detail.html
teleforma/templates/teleforma/courses.html
teleforma/templates/teleforma/inc/document_list.html

index 38a2a2833c101acad232b3860317d5fde5f11679..44793c31663670623a87746d36ccc62cbd36973f 100644 (file)
@@ -62,9 +62,7 @@
     {% endif %}
 
     {% block document %}
-    {% with forloop.counter as type_counter %}
     {% include "teleforma/inc/document_list.html" %}
-    {% endwith %}
     {% endblock %}
     {% endif %}
 
index 38f0285624d65d192f79f1af01cb78fbbd9f2782..57516ea8afb3dfad6196b4ff1f049c50d3ba85cd 100644 (file)
       {% endif %}
 
       {% block document %}
-      {% with forloop.counter as type_counter %}
       {% include "teleforma/inc/document_list.html" %}
-      {% endwith %}
       {% endblock %}
     </div>
     {% endfor %}
index 7e32f765a20e7d69e9b06988f1c929d60b45664f..a4b359e82dc01a26aa2d19c783626893f564102d 100644 (file)
@@ -10,7 +10,8 @@
 </div>
 
 {% for doc_type, docs in documents %}
-{% if docs and not type_counter > 2 %}
+
+{% if docs  %}
 <span class="doc_type_title">{{ doc_type }}</span>
 <table class="listing" width="100%">
     <tbody>