summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
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>