2021-08-29 20:50:22 +00:00
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
<h3 class="text-center">
|
|
|
|
{% if date_previous %}
|
|
|
|
<a class="btn btn-sm btn-default" href="?date={{ date_previous|date:"Y-m-d" }}" aria-label="{% trans "Previous" %}">
|
2021-08-30 11:29:53 +00:00
|
|
|
<i class="icon-2x icon-angle-circled-left" aria-hidden="true"></i>
|
2023-03-25 19:57:12 +00:00
|
|
|
<span class="visually-hidden">{% trans "Previous" %}</span>
|
2021-08-29 20:50:22 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{{ date|date }}
|
|
|
|
{% if date_next %}
|
|
|
|
<a class="btn btn-sm btn-default" href="?date={{ date_next|date:"Y-m-d" }}" aria-label="{% trans "Next" %}">
|
2021-08-30 11:29:53 +00:00
|
|
|
<i class="icon-2x icon-angle-circled-right" aria-hidden="true"></i>
|
2023-03-25 19:57:12 +00:00
|
|
|
<span class="visually-hidden">{% trans "Next" %}</span>
|
2021-08-29 20:50:22 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</h3>
|
|
|
|
{% if timeline_objects %}
|
|
|
|
<ul class="timeline m-auto">
|
2022-01-17 14:58:25 +00:00
|
|
|
{% for object in timeline_objects %}
|
|
|
|
<li{% cycle "" ' class="timeline-inverted"' %}>
|
|
|
|
<div class="timeline-badge {% if object.type == "start" %}bg-success{% elif object.type == "end" %}bg-danger{% else %}bg-info{% endif %}">
|
|
|
|
<i class="icon-{{ object.model_name }}"></i>
|
|
|
|
</div>
|
2023-03-25 19:57:12 +00:00
|
|
|
<div class="card text-end">
|
2022-01-17 14:58:25 +00:00
|
|
|
<div class="card-body">
|
|
|
|
{{ object.event }}
|
|
|
|
{% for detail in object.details %}
|
|
|
|
<div><small>{{ detail }}</small></div>
|
|
|
|
{% endfor %}
|
2022-03-08 14:28:32 +00:00
|
|
|
{% if object.tags %}
|
|
|
|
<div>
|
|
|
|
{% include "core/render_tag_list.html" with tags=object.tags %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-08-29 20:50:22 +00:00
|
|
|
</div>
|
2023-07-09 16:26:13 +00:00
|
|
|
<div class="card-footer text-body-secondary">
|
2022-01-17 14:58:25 +00:00
|
|
|
{% blocktrans trimmed with since=object.time|timesince time=object.time|time %}
|
|
|
|
{{ since }} ago ({{ time }})
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% if object.duration %}
|
|
|
|
<div>
|
|
|
|
<small>
|
|
|
|
{% blocktrans trimmed with duration=object.duration %}
|
|
|
|
Duration: {{ duration }}
|
|
|
|
{% endblocktrans %}
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if object.time_since_prev %}
|
|
|
|
<div>
|
|
|
|
<small>
|
|
|
|
{% blocktrans trimmed with since=object.time_since_prev %}
|
|
|
|
{{ since }} since previous
|
|
|
|
{% endblocktrans %}
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if object.edit_link %}
|
|
|
|
<div>
|
|
|
|
<small><a href="{{ object.edit_link }}">{% trans "Edit" %}</a></small>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-08-29 20:50:22 +00:00
|
|
|
</div>
|
2022-01-17 14:58:25 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
2021-08-29 20:50:22 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
<h3 class="text-center">
|
|
|
|
{% if date_previous %}
|
|
|
|
<a class="btn btn-sm btn-default" href="?date={{ date_previous|date:"Y-m-d" }}" aria-label="{% trans "Previous" %}">
|
2021-08-30 11:29:53 +00:00
|
|
|
<i class="icon-2x icon-angle-circled-left" aria-hidden="true"></i>
|
2023-03-25 19:57:12 +00:00
|
|
|
<span class="visually-hidden">{% trans "Previous" %}</span>
|
2021-08-29 20:50:22 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{{ date|date }}
|
|
|
|
{% if date_next %}
|
|
|
|
<a class="btn btn-sm btn-default" href="?date={{ date_next|date:"Y-m-d" }}" aria-label="{% trans "Next" %}">
|
2021-08-30 11:29:53 +00:00
|
|
|
<i class="icon-2x icon-angle-circled-right" aria-hidden="true"></i>
|
2023-03-25 19:57:12 +00:00
|
|
|
<span class="visually-hidden">{% trans "Next" %}</span>
|
2021-08-29 20:50:22 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</h3>
|
|
|
|
{% else %}
|
2021-12-18 18:45:05 +00:00
|
|
|
<div class="text-center">{% trans "No events" %}</div>
|
2022-01-17 14:58:25 +00:00
|
|
|
{% endif %}
|