From ee895f8f8a29c46033b129ff7bb3f0231ef74457 Mon Sep 17 00:00:00 2001 From: aceberg <1502200+aceberg@users.noreply.github.com> Date: Sun, 21 Aug 2022 03:14:53 +0700 Subject: [PATCH] buttons --- src/templates/index.html | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/src/templates/index.html b/src/templates/index.html index 863e751..8d09787 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -4,7 +4,7 @@
-

Now online

+

Online

@@ -20,7 +20,13 @@ - + {{ end }} {{ end }} @@ -34,17 +40,31 @@ + {{ range . }} {{ if eq .Now 0 }} - - - - - - - - + + + + + + + + + + + {{ end }} {{ end }}
Name{{ .Ip }} {{ .Mac }} {{ .Hw }}{{ .Known }} + {{ if eq .Known 1 }} + + {{ else }} + + {{ end }} +
Hardware Last seen Known
{{ .Name }}{{ .Ip }}{{ .Mac }}{{ .Hw }}{{ .Date }}{{ .Known }}
+ + {{ .Ip }}{{ .Mac }}{{ .Hw }}{{ .Date }} + {{ if eq .Known 1 }} + + {{ else }} + + {{ end }} + + +