diff options
author | Christian Franke <nobody@nowhere.ws> | 2016-01-18 17:17:16 +0100 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2016-01-18 18:06:26 +0100 |
commit | 90836e95ba86ea44dd338fcace0d3ebd82a62b57 (patch) | |
tree | 2a5641dea0b6b278af54e8b8d757ecd557a115a6 /template | |
parent | ee485c88b7032e4df4d53cbe71d9d3c9bc1fa41c (diff) |
Add calendar foo
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> |