blob: 42700ab5b1bdba3d34e134602db7ec766e7132c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<span>
{% if now.year != choice.start_datetime.year %}
{{ choice.start_datetime.strftime("%a %d.%m.%Y") }}
{% else %}
{{ choice.start_datetime.strftime("%a %d.%m") }}
{% endif %}
</span>
<span>
{% if not poll.is_whole_day %}
{{ choice.start_datetime.strftime("%H:%M") }}
{% endif %}
</span>
{% if (poll.is_whole_day and not choice.ends_on_same_day()) or (not poll.is_whole_day and not choice.ends_at_same_datetime()) %}
<span>—</span>
{% endif %}
{% if not choice.ends_on_same_day() %}
<span>
{% if now.year != choice.end_datetime.year %}
{{ choice.end_datetime.strftime("%a %d.%m.%Y") }}
{% else %}
{{ choice.end_datetime.strftime("%a %d.%m") }}
{% endif %}
</span>
{% endif %}
<span>
{% if not poll.is_whole_day %}
{{ choice.end_datetime.strftime("%H:%M") }}
{% endif %}
</span>
|