Commit 4c93649c authored by Kristian Tan's avatar Kristian Tan

Show last turned on time

parent 97b76a65
......@@ -26,14 +26,9 @@
</p>
{% endif %}
<ul class="device_details">
{% if pins[pin].on_date != None or pins[pin].on_time %}
{% if pins[pin].on_time %}
<li>
{% if pins[pin].on_date != None %}
Last turned on at: {{ pins[pin].on_date }}
{% endif %}
{% if pins[pin].on_time != None %}
, {{ pins[pin].on_time }}
{% endif %}
Last turned on at: {{ pins[pin].on_time }}
</li>
{% endif %}
<li>Device Wattage: {{ pins[pin].wattage }} </li>
......
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