statistics can load logs from archives

This commit is contained in:
bkfox
2020-05-31 20:07:37 +02:00
parent 4cda6d42e4
commit 09d0cab206
4 changed files with 15 additions and 3 deletions

View File

@ -66,6 +66,7 @@
<section>
<h4 class="title is-4">{% trans "Today" %}</h4>
{% with is_thin=True %}
{% with hide_schedule=True %}
{% with has_headline=False %}
<table class="table is-fullwidth has-background-transparent">
@ -78,6 +79,7 @@
</table>
{% endwith %}
{% endwith %}
{% endwith %}
</section>
{% endblock %}

View File

@ -3,6 +3,7 @@ Render list of logs (as widget).
Context:
- object_list: list of logs to display
- is_thin: if True, hide some information in order to fit in a thin container
{% endcomment %}
{% load aircox %}
@ -13,7 +14,8 @@ Context:
<td>
{% if object|is_diffusion %}
<time datetime="{{ object.start }}" title="{{ object.start }}">
{{ object.start|date:"H:i" }} - {{ object.end|date:"H:i" }}
{{ object.start|date:"H:i" }}
{% if not is_thin %} - {{ object.end|date:"H:i" }}{% endif %}
</time>
{% else %}
<time datetime="{{ object.date }}" title="{{ object.date }}">