diff options
Diffstat (limited to 'template/calendar.j2')
-rw-r--r-- | template/calendar.j2 | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ +<div class="calendar-listing {{ class }}"> +{%- for event in events %} + <p><span class="date"> + {%- 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 -%} + </span><span class="name">{{ event.name }}</span></p> + <div> + <p>{{ event.description|default('Keine Beschreibung',true) }}</p> + </div> +{%- endfor %} +</div> |