tried hacking

This commit is contained in:
2026-01-13 10:40:51 +01:00
parent 6fa8cf4bbd
commit e47cc5a504
+3 -3
View File
@@ -694,14 +694,14 @@ data:
template: | template: |
{{ $hb := .Subrequest "heartbeats" }} {{ $hb := .Subrequest "heartbeats" }}
{{ if not (.JSON.Exists "publicGroupList") }} {{ if not (.JSON.Exists "heartbeatList") }}
<p class="color-negative">Error reading response</p> <p class="color-negative">Error reading response</p>
{{ else if eq (len (.JSON.Array "publicGroupList")) 0 }} {{ else if eq (len (.JSON.Array "heartbeatList")) 0 }}
<p>No monitors found</p> <p>No monitors found</p>
{{ else }} {{ else }}
<ul class="dynamic-columns list-gap-8"> <ul class="dynamic-columns list-gap-8">
{{ range .JSON.Array "publicGroupList" }} {{ range .JSON.Array "heartbeatList" }}
{{ range .Array "monitorList" }} {{ range .Array "monitorList" }}
{{ $id := .String "id" }} {{ $id := .String "id" }}
{{ $hbArray := $hb.JSON.Array (print "heartbeatList." $id) }} {{ $hbArray := $hb.JSON.Array (print "heartbeatList." $id) }}