From: Jérémy Fabre Date: Tue, 14 Feb 2017 16:59:55 +0000 (+0100) Subject: Add slider to related content dynamic template X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ef22004c6b1992671fc75b137e4eeaf35725b10e;p=mezzo.git Add slider to related content dynamic template --- diff --git a/app/templates/core/inc/related_content_dynamic.html b/app/templates/core/inc/related_content_dynamic.html index 1d890c25..e226b2b4 100644 --- a/app/templates/core/inc/related_content_dynamic.html +++ b/app/templates/core/inc/related_content_dynamic.html @@ -8,17 +8,29 @@
-
-
+
+
+ {% for concrete_object in concrete_objects %} -
+ {% if forloop.counter0 == 0 or forloop.counter|divisibleby:3 %} +
+
+ {% endif %} + +
{% with app_label=concrete_object|app_label_short classname=concrete_object|classname|lower object=concrete_object %} {% with app_label|add:"/"|add:classname|add:"/includes/"|add:classname|add:"_card.html" as template %} {% include template %} {% endwith %} {% endwith %}
+ + {% if forloop.last or forloop.counter|divisibleby:2 %} +
+
+ {% endif %} {% endfor %} +