aboutsummaryrefslogtreecommitdiff
path: root/_www/index.tmpl
diff options
context:
space:
mode:
Diffstat (limited to '_www/index.tmpl')
-rw-r--r--_www/index.tmpl36
1 files changed, 26 insertions, 10 deletions
diff --git a/_www/index.tmpl b/_www/index.tmpl
index f7cebda..cf710db 100644
--- a/_www/index.tmpl
+++ b/_www/index.tmpl
@@ -7,20 +7,36 @@
</head>
<body>
<h2>{{.Title}}</h2>
- {{ range.Services }}
- <div>
+
+ <h3>Service status</h3>
+ <div class="service-status">
+ {{ range.Services }}
<div>
- <span>{{.Name}}</span>
- {{if .Last.Success}}
- <span class="success"> OK </span>
- {{else}}
- <span class="fail"> FAIL </span>
+ <div>
+ <span>{{.Name}}</span>
+ {{if .Last.Success}}
+ <span class="success"> OK </span>
+ {{else}}
+ <span class="fail"> FAIL </span>
+ {{ end }}
+ </div>
+ {{if not .Last.Success}}
+ <div>{{.Last.At}}: {{ .Last.Error }}</div>
{{ end }}
</div>
- {{if not .Last.Success}}
- <div>{{.Last.At}}: {{ .Last.Error }}</div>
{{ end }}
</div>
- {{ end }}
+
+ <h3>Fail history</h3>
+ <div class="fail-history">
+ {{ $list := reverse .Fail }}
+ {{ range $list }}
+ <div class="fail-history-item">
+ <span class="name">{{ .Name }}</span>
+ <span class="at">{{ .At }}</span>
+ <span class="error">{{ .Error }}</span>
+ </div>
+ {{ end }}
+ </div>
</body>
</html>