Commit c8839672 authored by Robert's avatar Robert
Browse files

Fix all day event title

parent 60a368da
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
<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 }}
+2 −2
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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;