summaryrefslogtreecommitdiff
path: root/template/calendar.j2
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-01-18 17:17:16 +0100
committerChristian Franke <nobody@nowhere.ws>2016-01-18 18:06:26 +0100
commit90836e95ba86ea44dd338fcace0d3ebd82a62b57 (patch)
tree2a5641dea0b6b278af54e8b8d757ecd557a115a6 /template/calendar.j2
parentee485c88b7032e4df4d53cbe71d9d3c9bc1fa41c (diff)
Add calendar foo
Diffstat (limited to 'template/calendar.j2')
-rw-r--r--template/calendar.j213
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>