aboutsummaryrefslogtreecommitdiff
path: root/src/views/components/dashboard/device.pug
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/components/dashboard/device.pug')
-rw-r--r--src/views/components/dashboard/device.pug12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/views/components/dashboard/device.pug b/src/views/components/dashboard/device.pug
new file mode 100644
index 0000000..099a54b
--- /dev/null
+++ b/src/views/components/dashboard/device.pug
@@ -0,0 +1,12 @@
+article.device
+
+ div
+ p= device.name
+
+ div
+
+ if device.type == "light"
+ button Toggle
+
+ - let location = `/devices/${device.id}`
+ a(href=location) View