diff --git a/static/img/bulbNone.png b/static/img/bulbNone.png
new file mode 100644
index 0000000..9366cef
Binary files /dev/null and b/static/img/bulbNone.png differ
diff --git a/views/relay.tpl b/views/relay.tpl
index 77669cf..1964ec4 100644
--- a/views/relay.tpl
+++ b/views/relay.tpl
@@ -27,7 +27,7 @@
{{else}}
{{$val.Description}}
{{end}}
-
+
{{end}}
@@ -50,7 +50,7 @@
Toggle
- 
+ 
{{end}}
{{end}}
@@ -77,8 +77,10 @@ var forEachRelay = function() {
if ($(links[i]).attr("id") == mac) {
if (status == "allume") {
$(links[i]).children("img").attr("src", "/static/img/bulbOn.png")
- } else {
+ } else if (status == "eteint") {
$(links[i]).children("img").attr("src", "/static/img/bulbOff.png")
+ } else {
+ $(links[i]).children("img").attr("src", "/static/img/bulbNone.png")
}
}
}
@@ -87,8 +89,10 @@ var forEachRelay = function() {
if ($(".jumbotron img").attr("id") == mac) {
if (status == "allume") {
$(".jumbotron img").attr("src", "/static/img/bulbOn.png")
- } else {
+ } else if (status == "eteint") {
$(".jumbotron img").attr("src", "/static/img/bulbOff.png")
+ } else {
+ $(".jumbotron img").attr("src", "/static/img/bulbNone.png")
}
}
}