Commit 13377111 authored by Kristian Tan's avatar Kristian Tan

Text formatting

parent 3b876efa
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
<h3 class="device_list_title">Device Listing and Status</h3> <h3 class="device_list_title">Device Listing and Status</h3>
{% for pin in pins %} {% for pin in pins %}
<p>The {{ pins[pin].name }} <p>{{ pins[pin].name }} :
{% if pins[pin].state == true %} {% if pins[pin].state == true %}
is currently on (<a href="/{{pin}}">turn off</a>) (<a href="/{{pin}}">turn off</a>)
{% else %} {% else %}
is currently off (<a href="/{{pin}}">turn on</a>) (<a href="/{{pin}}">turn on</a>)
{% endif %} {% endif %}
</p> </p>
{% endfor %} {% endfor %}
...@@ -30,13 +30,17 @@ ...@@ -30,13 +30,17 @@
<div class="smart_meter"> <div class="smart_meter">
<div class="smart_meter_info"> <div class="smart_meter_info">
<p>Devices currently in use: <p> Devices currently in use:
{% for pin in pins %} {% for pin in pins %}
{% if pins[pin].state == true %} {% if pins[pin].state == true %}
{{ pins[pin].name }} {{ pins[pin].name }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</p> </p>
<p> Used today:
</p>
</div> </div>
</div> </div>
</div> </div>
......
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