diff --git a/main.go b/main.go index 982f066..6755a09 100644 --- a/main.go +++ b/main.go @@ -29,7 +29,7 @@ import ( "time" ) -const VERSION = "v27" +const VERSION = "v26" var ( logger *slog.Logger diff --git a/static/css/default_light/datapoints.css b/static/css/default_light/datapoints.css index 977607d..c2e4a29 100644 --- a/static/css/default_light/datapoints.css +++ b/static/css/default_light/datapoints.css @@ -24,9 +24,6 @@ font-size: 0.85em; color: #7bb8eb; } -#datapoints .hidden { - display: none !important; -} #datapoints div { white-space: nowrap; align-self: center; diff --git a/static/css/gruvbox/datapoints.css b/static/css/gruvbox/datapoints.css index bfb61a3..3cc0ac3 100644 --- a/static/css/gruvbox/datapoints.css +++ b/static/css/gruvbox/datapoints.css @@ -24,9 +24,6 @@ font-size: 0.85em; color: #777; } -#datapoints .hidden { - display: none !important; -} #datapoints div { white-space: nowrap; align-self: center; diff --git a/static/less/datapoints.less b/static/less/datapoints.less index e897446..d1486aa 100644 --- a/static/less/datapoints.less +++ b/static/less/datapoints.less @@ -30,10 +30,6 @@ color: @text3; } - .hidden { - display: none !important; - } - div { white-space: nowrap; align-self: center; diff --git a/views/pages/datapoints.gotmpl b/views/pages/datapoints.gotmpl index d5326b7..96bbff0 100644 --- a/views/pages/datapoints.gotmpl +++ b/views/pages/datapoints.gotmpl @@ -2,56 +2,11 @@ {{ $version := .VERSION }} {{ $theme := .CONFIG.THEME }} - {{ block "page_label" . }}{{end}} Create -
- -
-
{{ $prevGroup := "15ecfcc0-b1aa-45cd-af9c-74146a7e7f56-not-very-likely" }} {{ range .Data.Datapoints }} @@ -65,18 +20,18 @@
{{ else }} -
+
{{ end }} -
{{ .Name }}
-
{{ .Datatype }}
-
{{ .NodataProblemSeconds }}
-
{{ format_time .LastValue }}
+
{{ .Name }}
+
{{ .Datatype }}
+
{{ .NodataProblemSeconds }}
+
{{ format_time .LastValue }}
{{ if eq .Datatype "DATETIME" }} -
{{ if .LastDatapointValue.ValueDateTime.Valid }}{{ format_time .LastDatapointValue.Value }}{{ end }}
+
{{ if .LastDatapointValue.ValueDateTime.Valid }}{{ format_time .LastDatapointValue.Value }}{{ end }}
{{ else }} -
{{ .LastDatapointValue.Value }}
+
{{ .LastDatapointValue.Value }}
{{ end }} -
+
{{ if eq .Comment "" }}
{{ else }}