From 90836e95ba86ea44dd338fcace0d3ebd82a62b57 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 18 Jan 2016 17:17:16 +0100 Subject: Add calendar foo --- template/calendar.j2 | 13 +++++++++++++ template/template/template.html | 1 + 2 files changed, 14 insertions(+) create mode 100644 template/calendar.j2 (limited to 'template') diff --git a/template/calendar.j2 b/template/calendar.j2 new file mode 100644 index 0000000..0e5a10c --- /dev/null +++ b/template/calendar.j2 @@ -0,0 +1,13 @@ +
+{%- for event in events %} +

+ {%- if event.multiday %} + {{- event.start.strftime('%d. %B %Y').decode('utf-8') }} - {{ event.end.strftime('%d. %B %Y').decode('utf-8') }} + {%- else %}{{ event.start.strftime('%d. %B %Y, %H:%M Uhr').decode('utf-8') }} + {%- endif -%} + {{ event.name }}

+
+

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

+
+{%- endfor %} +
diff --git a/template/template/template.html b/template/template/template.html index f483f79..37985cd 100644 --- a/template/template/template.html +++ b/template/template/template.html @@ -25,6 +25,7 @@ + -- cgit v1.2.1