From 55ac7e27973da030b369f823cd6579e209c60526 Mon Sep 17 00:00:00 2001 From: Benjamin Kiessling Date: Sun, 29 Jan 2012 17:49:05 +0100 Subject: Update to use new template system --- slideshows/dark/desc.js | 7 +++++-- slideshows/dark/template.html | 26 ++++++++++++++++++++++---- 2 files changed, 27 insertions(+), 6 deletions(-) (limited to 'slideshows/dark') diff --git a/slideshows/dark/desc.js b/slideshows/dark/desc.js index dcc120e..2d87d48 100644 --- a/slideshows/dark/desc.js +++ b/slideshows/dark/desc.js @@ -1,4 +1,7 @@ [ + { + "file": "IMGP4596.jpg", + "head": "Kicker", + "text": "unser toller Profikicker" + } ] - - diff --git a/slideshows/dark/template.html b/slideshows/dark/template.html index 9543d73..c2c5415 100644 --- a/slideshows/dark/template.html +++ b/slideshows/dark/template.html @@ -11,12 +11,30 @@
-
    - $IMAGES -
+
    + {% for slide in slides %} +
  • + {% if slide.image %}{% endif %} + {% if slide.description %}
    {{slide.description}}
    {% if slide.text %}
    {{slide.text}}
    {% endif %}
    {% endif %} + {% if slide.image %}{% endif %} +
  • + {% endfor %} +
- $EVENTS + {% for date in events %} +
{{date.date}}
+ {% if date.events %}
    {% endif %} + {% for event in date.events %} +
  • + {% if event.start %}
    {{event.start}}
    {% endif %} + {% if event.summary %}
    {{event.summary}}
    {% endif %} + {% if event.description %}
    {{event.description}}
    {% endif %} +
  • + {% endfor %} +
+
+ {% endfor %}
-- cgit v1.2.1