From bfe455d93627bc9ec8df59be4ec2e80b24f7e0c6 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Thu, 10 Jan 2019 05:48:25 +0100 Subject: monfront - add css to make check detail view nicer Now all the fields are shown in a column like view, which makes viewing them much nicer to the eye. --- cmd/monfront/main.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'cmd/monfront/main.go') diff --git a/cmd/monfront/main.go b/cmd/monfront/main.go index a3fd50d..ec35925 100644 --- a/cmd/monfront/main.go +++ b/cmd/monfront/main.go @@ -542,9 +542,8 @@ var ( margin-right: 0.5em; background-size: contain; } - .mute { - background-image: url(/static/icon-mute); - } + .mute { background-image: url(/static/icon-mute); } + .detail > div { display: grid; grid-template-columns: 25% auto; } /* state background colors */ {{ range $mapId, $mapping := .Mappings -}} {{ range $target, $val := $mapping -}} @@ -672,11 +671,11 @@ var ( {{ template "footer" . }}`, "check": `{{ template "header" . }} {{ template "checkformheader" . }} - + {{ $mapping := .Mappings }} {{ with .CheckDetails }} -
+

check

current state{{ (index $mapping .MappingId (index .States 0) ).Title }}
current notice{{ if .Notice }}{{ .Notice.String }}{{ end }}
@@ -687,14 +686,14 @@ var (
last refresh{{ .LastRefresh.Format "2006.01.02 15:04:05" }}
mapping{{ .MappingId }}
-
+

node {{ .NodeName }}

Message{{ .NodeMessage }}
-
+

command {{ .CommandName }}

Message{{ .CommandMessage }}
-
command line{{ .CommandLine }}
+
command line{{ join .CommandLine " " }}
States []int64 Notifiers []notifier -- cgit v1.2.3-70-g09d2