From 4d7d0c7cf9ed9e4a4744e4d671211eb814df29b0 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 4 Apr 2016 10:48:37 -0300 Subject: Add info whether event is recurring, include day of week --- template/calendar.j2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'template') diff --git a/template/calendar.j2 b/template/calendar.j2 index 1e3efeb..8e993a6 100644 --- a/template/calendar.j2 +++ b/template/calendar.j2 @@ -1,9 +1,14 @@
{%- for event in events %} -

+ {%- if event.recurring %} +

+ {%- else %} +

+ {%- endif -%} + {%- 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') }} + {{- 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 }}

-- cgit v1.2.1