imrpove statistics rendering + filters

This commit is contained in:
bkfox 2024-04-12 16:49:05 +02:00
parent 8a6f72ca83
commit 1d321a0de6
2 changed files with 7 additions and 9 deletions

View File

@ -4,7 +4,7 @@
{% block title %}{% translate "Statistics" %}{% endblock %} {% block title %}{% translate "Statistics" %}{% endblock %}
{% block content-container %} {% block content-container %}
<div class="container"> <div class="">
<form method="GET" class="box mt-3 mb-3"> <form method="GET" class="box mt-3 mb-3">
<h3 class="title is-3">{% translate "Filter by date" %}</h3> <h3 class="title is-3">{% translate "Filter by date" %}</h3>
@ -88,13 +88,11 @@
<tfoot> <tfoot>
<tr> <tr>
<td class="is-size-6">{% translate "Totals" %}</td> <td class="is-size-6">{% translate "Totals" %}</td>
<td colspan="100"> <td colspan="2">
<div class="columns is-size-6"> <span v-for="(count, tag) in counts" class="mr-4">
<span v-for="(count, tag) in counts" class="column"> <b>[[ tag ]]</b>
<b>[[ tag ]]</b> [[ count ]]
[[ count ]] </span>
</span>
</div>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>

View File

@ -13,7 +13,7 @@ Context:
{% if log %} {% if log %}
<span>{{ log.date|date:"H:i" }} &mdash; </span> <span>{{ log.date|date:"H:i" }} &mdash; </span>
{% endif %} {% endif %}
<span class="has-text-weight-bold">{{ object.title }}</span> <span class="has-text-weight-boldk">{{ object.title }}</span>
{% if object.artist and object.artist != object.title %} {% if object.artist and object.artist != object.title %}
<span> <span>
&mdash; {{ object.artist }} &mdash; {{ object.artist }}