List number of sessions when filtering on session list
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-01-10 20:47:33 +01:00
parent 078f87687f
commit 2defdd4657
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## Unreleased
* List number of sessions when filtering on session list
## 0.2.0 / 2023-01-09 22:42+01:00
* Show playtime total on session list (https://git.kucharczyk.xyz/lukas/timetracker/issues/6)

View File

@ -5,7 +5,8 @@
{% block content %}
{% if purchase %}
<div class="text-center text-xl mb-4 dark:text-slate-400">
<h1>Listing sessions only for purchase "{{ purchase }}" (total playtime: {{ total_duration }})</h1>
<h1>Listing sessions only for purchase "{{ purchase }}"</h1>
<h2>Total playtime: {{ total_duration }} over {{ dataset.count }} sessions.</h2>
<a class="dark:text-white hover:underline" href="{% url 'list_sessions' %}">View all sessions</a>
</div>
{% endif %}