Commit 30f5a665 authored by Kristian Tan's avatar Kristian Tan

None checks

parent a80a855a
...@@ -25,8 +25,17 @@ ...@@ -25,8 +25,17 @@
(<a href="/remove/{{ pin }}">remove</a>) (<a href="/remove/{{ pin }}">remove</a>)
</p> </p>
<p> <p>
<ul> <ul class="device_details">
<li>Last turned on: {{ pins[pin].on_date }} {{ pins[pin].on_time }}</li> {% if pins[pin].one_date != None or pins[pin].on_time %}
<li>
{% if pins[pin].one_date != None %}
{{ pins[pin].on_date }}
{% endif %}
{% if pins[pin].on_time != None %}
{{ pins[pin].on_time }}
{% endif %}
</li>
{% endif %}
<li>Device Wattage: {{ pins[pin].wattage }} </li> <li>Device Wattage: {{ pins[pin].wattage }} </li>
</ul> </ul>
</p> </p>
......
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