diff --git a/static/css/default_light/datapoints.css b/static/css/default_light/datapoints.css index c2e4a29..977607d 100644 --- a/static/css/default_light/datapoints.css +++ b/static/css/default_light/datapoints.css @@ -24,6 +24,9 @@ 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 3cc0ac3..bfb61a3 100644 --- a/static/css/gruvbox/datapoints.css +++ b/static/css/gruvbox/datapoints.css @@ -24,6 +24,9 @@ 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 d1486aa..e897446 100644 --- a/static/less/datapoints.less +++ b/static/less/datapoints.less @@ -30,6 +30,10 @@ 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 96bbff0..d5326b7 100644 --- a/views/pages/datapoints.gotmpl +++ b/views/pages/datapoints.gotmpl @@ -2,11 +2,56 @@ {{ $version := .VERSION }} {{ $theme := .CONFIG.THEME }} + {{ block "page_label" . }}{{end}} Create +
+ +
+
{{ $prevGroup := "15ecfcc0-b1aa-45cd-af9c-74146a7e7f56-not-very-likely" }} {{ range .Data.Datapoints }} @@ -20,18 +65,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 }}