From 2defdd465794217c4d5fb1591aa29ef5cf514800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 10 Jan 2023 20:47:33 +0100 Subject: [PATCH] List number of sessions when filtering on session list --- CHANGELOG.md | 4 ++++ src/web/tracker/templates/list_sessions.html | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b93395..cc33071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/web/tracker/templates/list_sessions.html b/src/web/tracker/templates/list_sessions.html index 3e32aad..a9b5dfd 100644 --- a/src/web/tracker/templates/list_sessions.html +++ b/src/web/tracker/templates/list_sessions.html @@ -5,7 +5,8 @@ {% block content %} {% if purchase %}
-

Listing sessions only for purchase "{{ purchase }}" (total playtime: {{ total_duration }})

+

Listing sessions only for purchase "{{ purchase }}"

+

Total playtime: {{ total_duration }} over {{ dataset.count }} sessions.

View all sessions
{% endif %}