summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kiessling <mittagessen@l.unchti.me>2012-01-27 03:14:11 +0100
committerBenjamin Kiessling <mittagessen@l.unchti.me>2012-01-27 03:14:11 +0100
commitc9f753afece5ba93e236c448158b90d788746369 (patch)
tree733c3da0d70d048aa0cce3519900a9e6986f3a4e
parent7dadd20fa765b34c0da2cdeba52da7d4cc139aae (diff)
Update default theme to use swig
-rw-r--r--slideshows/default/template.html21
1 files changed, 19 insertions, 2 deletions
diff --git a/slideshows/default/template.html b/slideshows/default/template.html
index a37b369..f814317 100644
--- a/slideshows/default/template.html
+++ b/slideshows/default/template.html
@@ -12,11 +12,28 @@
<div class="frame">
<div class="content">
<ul class="rui-billboard" data-billboard='{fxName: null, autostart: true, showButtons: false, delay: 10000}'>
- $IMAGES
+ {% for slide in slides %}
+ <li>
+ {% if slide.image %}<img src={{slide.image}}>{% endif %}
+ {% if slide.description %}<div class="slideDesc"><div class="slideHead">{{slide.description}}</div>{% if slide.text %}<div class="slideText">{{slide.text}}</div>{% endif %}</div>{% endif %}
+ {% if slide.image %}</img>{% endif %}
+ </li>
+ {% endfor %}
</ul>
</div>
<div class="events">
- $EVENTS
+ {% for date in events %}
+ <div class="event"><div class="eventDate">{{date.date}}</div>
+ {% if date.events %}<ul class="eventList">{% endif %}
+ {% for event in date.events %}
+ <li class="eventEl">
+ {% if event.start %}<div class="eventfield start">{{event.start}}</div>{% endif %}
+ {% if event.summary %}<div class="eventField summary">{{event.summary}}</div>{% endif %}
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endfor %}
</div>
</div>
</body>