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: |
{{ $hb := .Subrequest "heartbeats" }}
{{ if not (.JSON.Exists "publicGroupList") }}
{{ if not (.JSON.Exists "heartbeatList") }}
<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>
{{ else }}
<ul class="dynamic-columns list-gap-8">
{{ range .JSON.Array "publicGroupList" }}
{{ range .JSON.Array "heartbeatList" }}
{{ range .Array "monitorList" }}
{{ $id := .String "id" }}
{{ $hbArray := $hb.JSON.Array (print "heartbeatList." $id) }}