summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-04-05 14:48:03 -0300
committerChristian Franke <nobody@nowhere.ws>2016-04-05 14:48:03 -0300
commit6fb1deda0d09fa1be55888e878e6cacef0da1b65 (patch)
tree24f0964d50027d764d05f60563a0fa6265a7d8d1 /template
parentc7b404d07d40a795427dcc7459248d56ec34935a (diff)
Use different template to render tabcalendar
Diffstat (limited to 'template')
-rw-r--r--template/tabcalendar_list.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/template/tabcalendar_list.j2 b/template/tabcalendar_list.j2
new file mode 100644
index 0000000..02d7c2b
--- /dev/null
+++ b/template/tabcalendar_list.j2
@@ -0,0 +1,13 @@
+<div class="tabcalendar-details">
+{%- for event in events %}
+<div class="tabcalendar-event-details" id="{{event.id}}">
+<p><span class="date">
+ {%- if event.multiday %}
+ {{- event.start.strftime('%A, %d. %B %Y').decode('utf-8') }} - {{ event.end.strftime('%A, %d. %B %Y').decode('utf-8') }}
+ {%- else %}{{ event.start.strftime('%A, %d. %B %Y, %H:%M Uhr').decode('utf-8') }}
+ {%- endif -%}
+ </span> <span class="name">{{ event.name }}</span></p>
+<p>{{ event.description|default('Keine Beschreibung', true) }}</p>
+</div>
+{%- endfor %}
+</div>