Display total hours played on homepage
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-05 11:24:07 +01:00
parent fdb9aa8e84
commit 32f10e183e
3 changed files with 9 additions and 2 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.
You have played a total of {{ session_count }} sessions for a total of {{ total_duration }}.
{% else %}
Start by clicking the links at the top. To track playtime, you need to have at least 1 owned game.
{% endif %}