Skip to content

Commit 784bf53

Browse files
authored
Merge pull request #842 from ralphocdol/monitor-compact-with-icon
Added icon support for compact
2 parents 0ae8e77 + a863ecb commit 784bf53

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/glance/templates/monitor-compact.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{{ define "widget-content" }}
44
{{ if not (and .ShowFailingOnly (not .HasFailing)) }}
5-
<ul class="dynamic-columns list-gap-8">
5+
<ul class="dynamic-columns list-gap-10">
66
{{ range .Sites }}
77
{{ if and $.ShowFailingOnly (eq .StatusStyle "ok" ) }}{{ continue }}{{ end }}
88
<div class="flex items-center gap-12">
@@ -21,6 +21,9 @@
2121
{{ end }}
2222

2323
{{ define "site" }}
24+
{{ if .Icon.URL }}
25+
{{ .Icon.ElemWithClass "square-20" }}
26+
{{ end }}
2427
<a class="size-title-dynamic color-highlight text-truncate block grow" href="{{ .URL | safeURL }}" {{ if not .SameTab }}target="_blank"{{ end }} rel="noreferrer">{{ .Title }}</a>
2528
{{ if not .Status.TimedOut }}<div>{{ .Status.ResponseTime.Milliseconds | formatNumber }}ms</div>{{ end }}
2629
{{ if eq .StatusStyle "ok" }}

0 commit comments

Comments
 (0)