20 lines
507 B
Plaintext
Raw Normal View History

2019-07-15 21:29:13 +01:00
extends default
block content
div.container
2019-07-17 08:59:08 +01:00
if sockets.length <= 0
h2.socket-name
| No Plugs Found
else
each socket in sockets
div.socket
h2.socket-name
| #{socket.name}
h2.socket-name
| #{socket.uid}
if socket.state === 'OFF'
a.button-off(href=`/?uid=${socket.uid}`)
| #{socket.state}
else
a.button-on(href=`/?uid=${socket.uid}`)
| #{socket.state}