icinga

Icinga2 API client in Go
git clone https://git.olowe.co/icinga
Log | Files | Refs | README | LICENSE

services.tmpl (356B)


      1 {{define "title"}}Services{{end}}
      2 
      3 {{define "content"}}
      4 {{range .}}
      5 	<div class="f-row justify-content:space-between">
      6 		<a href="/objects/services/{{pathescape .Name}}">{{.DisplayName}} ({{.Name}})</a>
      7 		<chip class="{{if eq .State 0}}ok{{else if eq .State 1}}warn{{else if eq .State 2}}bad{{else}}unknown{{end}}">{{.State}}</chip>
      8 	</div>
      9 {{end}}
     10 {{end}}