timetracker/games/templates/index.html

17 lines
734 B
HTML
Raw Permalink Normal View History

2023-01-05 21:05:26 +00:00
{% extends "base.html" %}
2023-01-04 16:22:36 +00:00
{% block title %}{{ title }}{% endblock title %}
{% block content %}
2023-01-05 21:05:26 +00:00
<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 %}
You haven't played any games yet. Click "New Session" to add one now.
{% endif %}
</div>
2023-01-04 16:22:36 +00:00
{% endblock content %}