Improve game overview

- add counts for each section
- add average hours per session
This commit is contained in:
2023-10-09 00:00:45 +02:00
parent b9869cf232
commit caa2ae06e1
6 changed files with 70 additions and 173 deletions

View File

@ -5,7 +5,7 @@
{% block content %}
<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 }}.
You have played a total of {{ session_count }} sessions for a total of {{ total_duration_formatted }}.
{% 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 %}
@ -14,4 +14,4 @@
You haven't played any games yet. Click "New Session" to add one now.
{% endif %}
</div>
{% endblock content %}
{% endblock content %}