From 0774c7cb21e16f6dbca5833b9e4fa2d5c94be7e2 Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Thu, 16 Apr 2020 15:39:51 +0200
Subject: [PATCH] Remove for loop

---
 templates/page_with_carousel_button.html | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/templates/page_with_carousel_button.html b/templates/page_with_carousel_button.html
index d57c1e2..ff89ae3 100644
--- a/templates/page_with_carousel_button.html
+++ b/templates/page_with_carousel_button.html
@@ -85,10 +85,8 @@
 
 {% block template_content_footer %}
 
-{% for item in page.buttons %}
-    <button type="button" class="btn btn-default btn-lg">
-        {% set button = item.split('|') %}
-            <a href="{{ button[0] }}">{{ button[1] }}</a>
-    </button>
-{% endfor %}
+<button type="button" class="btn btn-default btn-lg">
+    {% set button = page.button.split('|') %}
+        <a href="{{ button[0] }}">{{ button[1] }}</a>
+</button>
 {% endblock %}
-- 
GitLab