From e2edf3f0ab8295bb3f1d9de623bc1ff22ad6be9c Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Thu, 16 Apr 2020 15:35:25 +0200
Subject: [PATCH] Fix syntax

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

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