forked from gergely/calendar-social
Hide time values for all-day events
This commit is contained in:
parent
cb9a62cd88
commit
8eb52ff7f4
@ -56,7 +56,9 @@
|
|||||||
<span class="day-num">{{ day.day }}</span>
|
<span class="day-num">{{ day.day }}</span>
|
||||||
{% for event in calendar.day_events(day, user=current_user if user_only else none) %}
|
{% for event in calendar.day_events(day, user=current_user if user_only else none) %}
|
||||||
<a href="{{ url_for('event_details', event_uuid=event.event_uuid) }}" class="event">
|
<a href="{{ url_for('event_details', event_uuid=event.event_uuid) }}" class="event">
|
||||||
|
{% if not event.all_day %}
|
||||||
{{ event.start_time_for_user(current_user).strftime('%H:%M') }}–{{ event.end_time_for_user(current_user).strftime('%H:%M') }}
|
{{ event.start_time_for_user(current_user).strftime('%H:%M') }}–{{ event.end_time_for_user(current_user).strftime('%H:%M') }}
|
||||||
|
{% endif %}
|
||||||
{{ event.title }}
|
{{ event.title }}
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user