diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/calendar.j2 | 13 | ||||
-rw-r--r-- | template/template/template.html | 1 |
2 files changed, 14 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> diff --git a/template/template/template.html b/template/template/template.html index f483f79..37985cd 100644 --- a/template/template/template.html +++ b/template/template/template.html @@ -25,6 +25,7 @@ <link rel="space-api" href="/status.json" /> <script src="/js/jquery.min.js"></script> + <script src="/js/calendar.js"></script> <script src="/js/bootstrap.min.js"></script> </head> |