]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commit
Ensure that the home screen is loaded automatically
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 20 Aug 2020 22:06:28 +0000 (00:06 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Fri, 21 Aug 2020 10:27:25 +0000 (12:27 +0200)
commitdea89df123a5b8b34dd9aea624d46b4e36d0ab98
tree54efeb5451a48844e218d411931e575ae0d9662e
parent0cf6c846a1abb14e902fa1dbc7497a738ddb9b17
Ensure that the home screen is loaded automatically

Now, when the application starts, only a blank page is shown. The home
screen (summary graphs for all users) shows only after somebody logs
in and out. With this change, the home screen is loaded automatically
on the first start or on manual page reload.

Together with this change, we split the home and user screens to
separate templates (previously the home screen was the user screen
with name unset). Hopefully, this change makes the UI logic a bit
easier to follow.
app.py
templates/home.html [new file with mode: 0644]
templates/main.js
templates/user.html