diff --git a/Dockerfile b/Dockerfile index 9875f43..5c3f78d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm install && \ FROM python:3.10-slim-bullseye -ENV VERSION_NUMBER 0.1.0-39-gf7ec079 +ENV VERSION_NUMBER 0.1.0-40-g5ad0e52 ENV PROD 1 RUN useradd --create-home --uid 1000 timetracker diff --git a/src/web/tracker/templates/add.html b/src/web/tracker/templates/add.html index 5d4616d..ed1d003 100644 --- a/src/web/tracker/templates/add.html +++ b/src/web/tracker/templates/add.html @@ -1,13 +1,13 @@ -{% extends 'base.html' %} +{% extends "base.html" %} {% block title %}{{ title }}{% endblock title %} {% block content %} -
- {% csrf_token %} + + {% csrf_token %} - {{ form.as_p }} + {{ form.as_p }} - -
+ + {% endblock content %} \ No newline at end of file diff --git a/src/web/tracker/templates/base.html b/src/web/tracker/templates/base.html index cfe293f..6b25108 100644 --- a/src/web/tracker/templates/base.html +++ b/src/web/tracker/templates/base.html @@ -1,46 +1,48 @@ -{% load static %} + {% load static %} - - - - Timetracker - {% block title %}Untitled{% endblock title %} - - - + + + + + + Timetracker - {% block title %}Untitled{% endblock title %} + + + - -
- - {% block content %}No content here.{% endblock %} -
- {% load version %} - {% version %} ({% version_date %}) - + + {% block content %}No content here.{% endblock content %} + + {% load version %} + {% version %} ({% version_date %}) + \ No newline at end of file diff --git a/src/web/tracker/templates/index.html b/src/web/tracker/templates/index.html index f209a64..c3f8df8 100644 --- a/src/web/tracker/templates/index.html +++ b/src/web/tracker/templates/index.html @@ -1,17 +1,17 @@ -{% extends 'base.html' %} +{% extends "base.html" %} {% block title %}{{ title }}{% endblock title %} {% block content %} -
-{% 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 %} -
+
+ {% 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 %} +
{% endblock content %} \ No newline at end of file