summaryrefslogtreecommitdiff
path: root/template/calendar_event.j2
diff options
context:
space:
mode:
Diffstat (limited to 'template/calendar_event.j2')
-rw-r--r--template/calendar_event.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/template/calendar_event.j2 b/template/calendar_event.j2
new file mode 100644
index 0000000..106b65a
--- /dev/null
+++ b/template/calendar_event.j2
@@ -0,0 +1,14 @@
+{%- if event.recurring %}
+<p class="recurring">
+{%- else %}
+<p class="onetime">
+{%- endif -%}
+ <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>
+<div>
+ <p>{{ event.description|default('Keine Beschreibung',true) }}</p>
+</div>