Fixed overflow. Added Open fridge and Open tools buttons
This commit is contained in:
@@ -26,18 +26,12 @@ def index():
|
|||||||
@app.route('/status')
|
@app.route('/status')
|
||||||
@requires_auth
|
@requires_auth
|
||||||
def somehtml():
|
def somehtml():
|
||||||
#history = []
|
|
||||||
#with open('history.json', 'r') as json_data:
|
|
||||||
# history = json.load(json_data)
|
|
||||||
#history = history[-15:]
|
|
||||||
#for event in history:
|
|
||||||
# event['time'] = epochFormat(event['time'])
|
|
||||||
return render_template('status.html')
|
return render_template('status.html')
|
||||||
|
|
||||||
@app.route('/users')
|
@app.route('/users')
|
||||||
@requires_auth
|
@requires_auth
|
||||||
def users():
|
def users():
|
||||||
return 'You have reached Users'
|
return 'This button is actually useless.'
|
||||||
|
|
||||||
@app.route('/history')
|
@app.route('/history')
|
||||||
@requires_auth
|
@requires_auth
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -11,6 +11,7 @@ html {
|
|||||||
top: 0;
|
top: 0;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
.event {
|
.event {
|
||||||
|
|||||||
@@ -20,7 +20,9 @@
|
|||||||
<div class="everything-else">
|
<div class="everything-else">
|
||||||
<h1>Card access manager</h1>
|
<h1>Card access manager</h1>
|
||||||
<br>
|
<br>
|
||||||
<a href="/users"><div class="big-button">Users list</div></a>
|
<a href="/users"><div class="big-button">Open fridge</div></a>
|
||||||
|
<br>
|
||||||
|
<a href="/users"><div class="big-button">Open tools</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="shadow" onclick="overlay_out()"></div>
|
<div class="shadow" onclick="overlay_out()"></div>
|
||||||
<div class="overlay">
|
<div class="overlay">
|
||||||
|
|||||||
Reference in New Issue
Block a user