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

View File

@ -13,7 +13,7 @@ Context:
{% if log %}
<span>{{ log.date|date:"H:i" }} &mdash; </span>
{% 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 %}
<span>
&mdash; {{ object.artist }}