Commit c8839672 authored by Robert's avatar Robert

Fix all day event title

parent 60a368da
Pipeline #1286 failed with stage
in 1 minute and 40 seconds
<time data-component="time time-from" datetime="{{ time|date:'c' }}" title="{{ time|date:'d. m. Y H:i' }}">{% spaceless %}
<time data-component="time time-from" datetime="{{ time|date:'c' }}" title="{% if all_day %}{{ time|date:'d. m. Y' }}{% else %}{{ time|date:'d. m. Y H:i' }}{% endif %}">{% spaceless %}
{{ time|date:'d. m. Y H:i' }}
{% endspaceless %}</time>{{ suffix }}
......@@ -97,8 +97,8 @@ def link(model, title=None):
@register.inclusion_tag('core/_time.html')
def time(time, suffix=''):
return {'suffix': suffix, 'time': time}
def time(time, all_day=False, suffix=''):
return {'all_day': all_day, 'suffix': suffix, 'time': time}
@register.inclusion_tag('core/_pagination.html', takes_context=True)
......
......@@ -16,7 +16,7 @@
{% for association in upcoming %}
<li>
<div class="event-preview">
{% time association.container.time suffix=':' %}
{% time association.container.time suffix=':' all_day=association.container.all_day %}
<a href="{{ association.get_absolute_url }}">{{ association.container.title }}</a>
{% if show_group and association.entity.is_group %}
&middot;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment