summaryrefslogtreecommitdiff
path: root/template/calendar.j2
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-04-04 10:48:37 -0300
committerChristian Franke <nobody@nowhere.ws>2016-04-04 10:48:37 -0300
commit4d7d0c7cf9ed9e4a4744e4d671211eb814df29b0 (patch)
treef9dc2e5bf4d7dd18b6e1f47817e2a9e7ffa6e016 /template/calendar.j2
parentf451149e6fc6bc7894ce9140a6c486e0173b6533 (diff)
Add info whether event is recurring, include day of week
Diffstat (limited to 'template/calendar.j2')
-rw-r--r--template/calendar.j211
1 files changed, 8 insertions, 3 deletions
diff --git a/template/calendar.j2 b/template/calendar.j2
index 1e3efeb..8e993a6 100644
--- a/template/calendar.j2
+++ b/template/calendar.j2
@@ -1,9 +1,14 @@
<div class="calendar-listing {{ class }}">
{%- for event in events %}
- <p><span class="date">
+ {%- if event.recurring %}
+ <p class="recurring">
+ {%- else %}
+ <p class="onetime">
+ {%- endif -%}
+ <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') }}
+ {{- 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>
<div>