template angepasst

This commit is contained in:
Bernd Reuther 2021-03-03 22:47:17 +01:00
parent b833bebb1c
commit 12caad6f16

View File

@ -14,10 +14,10 @@
<h2>{{ pins[pin].name }} <h2>{{ pins[pin].name }}
{% if pins[pin].state == true %} {% if pins[pin].state == true %}
ist gerade <strong>an</strong></h2><div class="row"><div class="col-md-2"> ist gerade <strong>an</strong></h2><div class="row"><div class="col-md-2">
<a href="/{{pin}}/off" class="btn btn-block btn-lg btn-default" role="button">Turn off</a></div></div> <a href="/{{pins[pin].nr}}/off" class="btn btn-block btn-lg btn-default" role="button">Turn off</a></div></div>
{% else %} {% else %}
ist gerade <strong>aus</strong></h2><div class="row"><div class="col-md-2"> ist gerade <strong>aus</strong></h2><div class="row"><div class="col-md-2">
<a href="/{{pin}}/on" class="btn btn-block btn-lg btn-primary" role="button">Turn on</a></div></div> <a href="/{{pins[pin].nr}}/on" class="btn btn-block btn-lg btn-primary" role="button">Turn on</a></div></div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% for pin in pins_in %} {% for pin in pins_in %}