forked from triblondon/health-status-formatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
56 lines (53 loc) · 2.77 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/css/bootstrap.min.css'>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css'>
<style>
.alert-status { border-radius: 9px; margin: 1em 0; padding: 12px 30px 7px 30px; font-size: 30px; }
.alert-status i { margin-right: 15px; margin-top: -5px; font-size: 200%; display: inline-block; vertical-align: middle; }
.alert-status-sev-1 { background-color: red; color: white; }
.alert-status-sev-1 .icon-:before { content: "\f057"; }
.alert-status-sev-2 { background-color: #FF8500; color: white;}
.alert-status-sev-2 .icon-:before { content: "\f071"; }
.alert-status-sev-3 { background-color: #FFD273; color: #836C44;}
.alert-status-sev-3 .icon-:before { content: "\f071"; }
.alert-status-ok { background-color: green; color: white; }
.alert-status-ok i:before { content: "\f058"; }
.panel-heading { position:relative; padding-left: 45px;}
.panel-heading .status { position: absolute; top:0; left:0; bottom:0; width:35px; text-align: center; font-family: FontAwesome; color: white;font-size: 20px; padding-top: 4px; }
.panel-heading time { font-style: italic; margin-left: 10px; float: right; }
.check-ok .status { background-color: green }
.check-ok .status:before { content: "\f00c"; }
.check-sev-1 .status { background-color: red }
.check-sev-1 .status:before { content: "\f00d"; }
.check-sev-2 .status { background-color: #FF8500 }
.check-sev-2 .status:before { content: "\f071"; }
.check-sev-3 .status { background-color: #FFD273; color: #836C44; }
.check-sev-3 .status:before { content: "\f071"; }
table.table { margin-bottom: 0; }
table.table th { white-space: nowrap;}
</style>
<div class='container'>
<h1>Service health status</h1>
<p class='lead'><strong>{{name}}</strong>: {{description}}</p>
<div class='alert-status alert-status-{{statusclass}}'><i class='icon-'></i> {{statussummary}}</div>
<div class='panel-group'>
{{#checks}}
<div class='panel panel-default check check-{{statusclass}}'>
<div class="panel-heading">
<div class='status'></div>
<time datetime='{{{lastUpdated}}}'></time>
<h4 class="panel-title">
<a data-toggle="collapse" href="#check{{{idx}}}">{{name}}</a>
</h4>
</div>
<div id="check{{{idx}}}" class="panel-collapse collapse">
<table class='table'>
{{#checkOutput}}<tr><th>Output</th><td><tt>{{checkOutput}}</tt></td></tr>{{/checkOutput}}
{{#businessImpact}}<tr><th>Business impact</th><td>{{businessImpact}}</td></tr>{{/businessImpact}}
{{#technicalSummary}}<tr><th>Technical summary</th><td>{{technicalSummary}}</td></tr>{{/technicalSummary}}
{{#panicGuide}}<tr><th>Panic guide</th><td>{{{panicGuide}}}</td></tr>{{/panicGuide}}
</table>
</div>
</div>
{{/checks}}
</div>
</div>