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

Show last turned on time

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