Random fixes

This commit is contained in:
2017-09-13 15:25:10 +02:00
parent 8d8918b25a
commit c164633a18
10 changed files with 134 additions and 47 deletions

View File

@@ -2,18 +2,33 @@
<body>
<table>
<ul>
{% for k, v in states %}
<li>
{% if v['name'] == hostname %}<b>{% endif %}
<a href="http://{{ k }}:5000">{{ v['name'] }}</a> ({{ v['slide'] }})
{% if v['name'] == hostname %}</b>{% endif %}
</li>
{% endfor %}
</ul>
<tr>
<th>Włącz</th>
{% for n in range(10) %}
<td><a href="/set/{{ n }}">{{ n + 1 }}</a></td>
{% endfor %}
<td><a href="/set/all">Wszystko</a></td>
</tr>
<tr>
<th>Wyłącz</th>
{% for n in range(10) %}
<td><a href="/clear/{{ n }}">{{ n + 1 }}</a></td>
{% endfor %}
<td><a href="/clear/all">Wszystko</a></td>
</tr>
</table>
<a href="/restart" style="color: red">RESTART</a>
</body>
</html>