diff --git a/ops/glance/config/home.yml b/ops/glance/config/home.yml index 0be73e7..91da35d 100644 --- a/ops/glance/config/home.yml +++ b/ops/glance/config/home.yml @@ -174,31 +174,32 @@ {{ $running := 0 }} {{ range $stacks }}{{ if eq (.String "info.state") "running" }}{{ $running = add $running 1 }}{{ end }}{{ end }} {{ $problems := sub $total $running }} -
-
+ {{ $divider := "border-left: 1px solid hsla(220, 40%, 70%, 0.14);" }} +
+
{{ $total }}
-
Stacks
+
Stacks
-
+
{{ $running }}
-
Running
+
Running
-
+
{{ $problems }}
-
Auffaellig
+
Auffaellig
+
+
+
{{ if gt $problems 0 }} -
    +
    {{ range $stacks }} {{ if ne (.String "info.state") "running" }} -
  • -
    {{ .String "name" }}
    -
    {{ .String "info.state" }}
    -
  • + {{ .String "name" }} ยท {{ .String "info.state" }} {{ end }} {{ end }} -
+
{{ end }} - type: custom-api @@ -221,24 +222,27 @@ {{ $storageOK := and (ge $storage.Response.StatusCode 200) (le $storage.Response.StatusCode 299) }} {{ $percentage := 0.0 }} {{ if $storageOK }}{{ $percentage = $storage.JSON.Float "diskUsagePercentage" }}{{ end }} -
-
+ {{ $divider := "border-left: 1px solid hsla(220, 40%, 70%, 0.14);" }} +
+
{{ $photos | formatNumber }}
-
Fotos
+
Fotos
-
+
{{ $videos | formatNumber }}
-
Videos
+
Videos
-
+
{{ printf "%.0f" $usageGiB }} GiB
-
Medien
+
Medien
-
-
+
+
+
+
+
{{ if $storageOK }}{{ printf "%.1f" $percentage }}% belegt{{ else }}Speicher API n/v{{ end }}
-
{{ if $storageOK }}{{ printf "%.1f" $percentage }}% Speicher belegt{{ else }}Speicher API nicht verfuegbar{{ end }}
- type: group widgets: