From edd735707a090cba3014b9ab92bb56c78f55fb83 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Mon, 7 Feb 2022 13:28:01 +0100 Subject: [PATCH] Remove test on type counter --- teleforma/templates/teleforma/course_detail.html | 2 -- teleforma/templates/teleforma/courses.html | 2 -- teleforma/templates/teleforma/inc/document_list.html | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/teleforma/templates/teleforma/course_detail.html b/teleforma/templates/teleforma/course_detail.html index 38a2a283..44793c31 100644 --- a/teleforma/templates/teleforma/course_detail.html +++ b/teleforma/templates/teleforma/course_detail.html @@ -62,9 +62,7 @@ {% endif %} {% block document %} - {% with forloop.counter as type_counter %} {% include "teleforma/inc/document_list.html" %} - {% endwith %} {% endblock %} {% endif %} diff --git a/teleforma/templates/teleforma/courses.html b/teleforma/templates/teleforma/courses.html index 38f02856..57516ea8 100644 --- a/teleforma/templates/teleforma/courses.html +++ b/teleforma/templates/teleforma/courses.html @@ -178,9 +178,7 @@ {% endif %} {% block document %} - {% with forloop.counter as type_counter %} {% include "teleforma/inc/document_list.html" %} - {% endwith %} {% endblock %} {% endfor %} diff --git a/teleforma/templates/teleforma/inc/document_list.html b/teleforma/templates/teleforma/inc/document_list.html index 7e32f765..a4b359e8 100644 --- a/teleforma/templates/teleforma/inc/document_list.html +++ b/teleforma/templates/teleforma/inc/document_list.html @@ -10,7 +10,8 @@ {% for doc_type, docs in documents %} -{% if docs and not type_counter > 2 %} + +{% if docs %} {{ doc_type }} -- 2.39.5