]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/blobdiff - templates/user.html
Add graphs with total coffee consumption on login screen
[coffee/coffee-flask.git] / templates / user.html
index 94c5d533c775d46e69905903d4d2e881d6d58640..7e549b91f0197610a7fc7f2586bd064d287e8143 100644 (file)
@@ -1,6 +1,6 @@
 {% if name %}
     <form style="position: absolute; right: 15%; width: 15%; height: 15%;">
-        <input type="button" value="logout" onclick="logout()" style="width: 100%; height: 100%;">
+        <button type="button" id="logout_button" onclick="logout()" style="width: 100%; height: 100%;">logout</button>
     </form>
 
     <h1>Hello, {{ name }}!</h1>
         </form>
         {% endif %}
     </p>
-
     <p>
         <form>
             <input id="username" type="text" name="name">
             <input type="button" value="rename" onclick="renameUser()">
         </form>
-    </p
+    </p>
 {% else %}
-    Use your card/token to log in...
+    <p>Use your card/token to log in...</p>
+
+    <img src="{{ url_for('coffee_graph_history', _external=True, stamp=stamp) }}">
+    <img src="{{ url_for('coffee_graph_flavors', _external=True, stamp=stamp, days=7) }}">
 {% endif %}