Commit fe48ce72 authored by Kristian Tan's avatar Kristian Tan

Show a message if no devices are running

parent c1dac4d2
...@@ -37,6 +37,7 @@ def main(): ...@@ -37,6 +37,7 @@ def main():
@app.route("/<change_pin>") @app.route("/<change_pin>")
def toggle_pin(change_pin): def toggle_pin(change_pin):
# TODO: change_pin is somethimes favicon.co for some reason? Fix
if change_pin == 'favicon.ico': if change_pin == 'favicon.ico':
pass pass
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
</p> </p>
{% endfor %} {% endfor %}
{# {% if message %}#} {# {% if message %}#}
{# <h2>{{ message }}</h2>#} {# <h2>{{ message }}</h2>#}
{# {% endif %}#} {# {% endif %}#}
...@@ -36,6 +37,9 @@ ...@@ -36,6 +37,9 @@
{{ pins[pin].name }} {{ pins[pin].name }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if len(pins) == 0 %}
No devices currently in use.
</p> </p>
<p> Used today: <p> Used today:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment