From 6fb1deda0d09fa1be55888e878e6cacef0da1b65 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 5 Apr 2016 14:48:03 -0300 Subject: Use different template to render tabcalendar --- template/tabcalendar_list.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 template/tabcalendar_list.j2 (limited to 'template') 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 @@ +
+{%- for event in events %} +
+

+ {%- 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 -%} + {{ event.name }}

+

{{ event.description|default('Keine Beschreibung', true) }}

+
+{%- endfor %} +
-- cgit v1.2.1