From f5d02ba1ef01aad7d288a652a01187976a1097d1 Mon Sep 17 00:00:00 2001 From: xenophenes Date: Mon, 15 May 2017 16:56:05 -0700 Subject: [PATCH] fix sponsors loop --- templates/pages/sponsors.html | 40 +++++++++-------------------------- 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/templates/pages/sponsors.html b/templates/pages/sponsors.html index bd06b72..8006fc0 100644 --- a/templates/pages/sponsors.html +++ b/templates/pages/sponsors.html @@ -14,33 +14,23 @@

Diamond

-{% set row_start = cycler('
','') %} -{% set row_end = cycler('','
') %} - +
{% for p in diamond %} -{{ row_start.next() }} -
- +
+ {{p.name}} -
{{p.intro}}
- {% if loop.revindex0 == 0 %} - -
- {% else %} - {{ row_end.next() }} - {% endif %} {% endfor %} -
+
+

Gold

{% for p in gold %} -
+
{{p.name}}
@@ -52,26 +42,16 @@

Silver

-{% set row_start = cycler('
','') %} -{% set row_end = cycler('','
') %} - +
{% for p in silver %} -{{ row_start.next() }} -
+
{{p.name}} -
{{p.intro}}
- {% if loop.revindex0 == 0 %} - -
- {% else %} - {{ row_end.next() }} - {% endif %} {% endfor %} - +
+
{% endblock %} -- 2.39.5