Improve newcomer experience
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-01-05 17:15:14 +01:00
parent 89be0c031b
commit 8efce77062
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -6,8 +6,12 @@
<div class="text-slate-300 mx-auto max-w-screen-lg text-center">
{% 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 %}
</div>
{% endblock content %}