tried hacking
This commit is contained in:
@@ -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) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user