]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/blobdiff - templates/user.html
Ensure that the home screen is loaded automatically
[coffee/coffee-flask.git] / templates / user.html
index e10409aab2074fa70640427fbaa454e306f73662..28d602246222fb406e9b51d4f713e518f2094e99 100644 (file)
@@ -1,7 +1,6 @@
 {###############}
 {# Graphs etc. #}
 {###############}
-{% if name %}
     <form style="position: absolute; right: 15%; width: 15%; height: 15%;">
         <button type="button" id="logout_button" onclick="logout()" style="width: 100%; height: 100%;">logout</button>
     </form>
         </form>
         {% endif %}
     </p>
-{% else %}
-    <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 %}
 
 {##########}
 {# Events #}
@@ -63,7 +56,6 @@
 {##################################}
 {# User name and chip idnetifiers #}
 {##################################}
-{% if name %}
     <br />
     <p>
         <form>
@@ -92,4 +84,3 @@
             </tr>
         </table>
     </form>
-{% endif %}