Commit 7afe7863 authored by Kristian Tan's avatar Kristian Tan

display device details in both states

parent 7126ac46
...@@ -24,22 +24,22 @@ ...@@ -24,22 +24,22 @@
(<a href="/toggle/{{ pin }}">turn on</a>) (<a href="/toggle/{{ pin }}">turn on</a>)
(<a href="/remove/{{ pin }}">remove</a>) (<a href="/remove/{{ pin }}">remove</a>)
</p> </p>
<p> {% endif %}
<ul class="device_details"> <p>
{% if pins[pin].on_date != None or pins[pin].on_time %} <ul class="device_details">
<li> {% if pins[pin].on_date != None or pins[pin].on_time %}
{% if pins[pin].on_date != None %} <li>
{{ pins[pin].on_date }} {% if pins[pin].on_date != None %}
{% endif %} {{ pins[pin].on_date }}
{% if pins[pin].on_time != None %}
{{ pins[pin].on_time }}
{% endif %}
</li>
{% endif %} {% endif %}
<li>Device Wattage: {{ pins[pin].wattage }} </li> {% if pins[pin].on_time != None %}
</ul> {{ pins[pin].on_time }}
</p> {% endif %}
</li>
{% endif %} {% endif %}
<li>Device Wattage: {{ pins[pin].wattage }} </li>
</ul>
</p>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<p><a href="/devices/add_device">Add device</a></p> <p><a href="/devices/add_device">Add device</a></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