From 8efce77062f9091e07aedc63a899f85a7ea58f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Thu, 5 Jan 2023 17:15:14 +0100 Subject: [PATCH] Improve newcomer experience --- CHANGELOG.md | 1 + src/web/tracker/templates/index.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0ba624..cb7f530 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ## Unreleased +* Improve the newcomer experience by guiding through each step * Fix errors with empty database * Fix negative playtimes being considered positive * Add %d for days to common.util.time.format_duration diff --git a/src/web/tracker/templates/index.html b/src/web/tracker/templates/index.html index 16b8a27..f209a64 100644 --- a/src/web/tracker/templates/index.html +++ b/src/web/tracker/templates/index.html @@ -6,8 +6,12 @@
{% if session_count > 0 %} You have played a total of {{ session_count }} sessions for a total of {{ total_duration }}. +{% elif not game_available or not platform_available %} +There are no games in the database. Start by clicking "New Game" and "New Platform". +{% elif not purchase_available %} +There are no owned games. Click "New Purchase" at the top. {% else %} -Start by clicking the links at the top. To track playtime, you need to have at least 1 owned game. +You haven't played any games yet. Click "New Session" to add one now. {% endif %}
{% endblock content %} \ No newline at end of file