diff --git a/internal/glance/templates/docker-containers.html b/internal/glance/templates/docker-containers.html index d9ff2d8..66c79fd 100644 --- a/internal/glance/templates/docker-containers.html +++ b/internal/glance/templates/docker-containers.html @@ -1,64 +1,64 @@ {{ template "widget-base.html" . }} -{{ define "widget-content" }} +{{- define "widget-content" }}
- {{ range .Containers }} + {{- range .Containers }}
-
+
{{ .Image }}
{{ .StateText }}
- {{ if .Children }} + {{- if .Children }}
    - {{ range .Children }} + {{- range .Children }}
  • {{ template "state-icon" .StateIcon }}
    {{ .Title }} {{ .StateText }}
  • - {{ end }} + {{- end }}
- {{ end }} + {{- end }}
- {{ if .URL }} + {{- if .URL }} {{ .Title }} - {{ else }} + {{- else }}
{{ .Title }}
- {{ end }} - {{ if .Description }} + {{- end }} + {{- if .Description }}
{{ .Description }}
- {{ end }} + {{- end }}
{{ template "state-icon" .StateIcon }}
- {{ else }} + {{- else }}
No containers available to show.
- {{ end }} + {{- end }}
-{{ end }} +{{- end }} -{{ define "state-icon" }} -{{ if eq . "ok" }} +{{- define "state-icon" }} +{{- if eq . "ok" }} -{{ else if eq . "warn" }} +{{- else if eq . "warn" }} -{{ else if eq . "paused" }} +{{- else if eq . "paused" }} -{{ else }} +{{- else }} -{{ end }} -{{ end }} +{{- end }} +{{- end }}