From ff4c6bd06b39673e160b6def56a0e156dfe5f9b8 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Mon, 20 Nov 2023 13:35:33 +0100 Subject: [PATCH] badges --- app/templates/index.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index 0536cc5..a8aa44a 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -142,7 +142,12 @@ input:checked + .slider:before {
  • -
    {{outlet[1].name}}
    Outlet: {{outlet[0]}}
    +
    {{outlet[1].name}}
    Outlet: {{outlet[0]}} + {% if outlet[1].state == "on" %} + On + {% else %} + Off + {% endif %}
    - {% if outlet[1].state == "on" %} - On - {% else %} - Off - {% endif %} +