summaryrefslogtreecommitdiff
path: root/views/admin.html.copy
blob: 17f5c87642a151978450ae94f0ef63f324d4bfba (plain)
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
{{template "header.html"}}
{{template "navbar.html"}}

<div class="container">
	<div class="row">
{{range .Error}}
<h4 class="col-md-4 col-md-offset-4 alert alert-danger alert-dismissible" role="alert">
	<button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">&times;</span></button>
	{{.}}
</h4>
{{end}}
{{range .Success}}
<h4 class="col-md-4 col-md-offset-4 alert alert-success alert-dismissible" role="alert">
	<button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">&times;</span></button>
	{{.}}
</h4>
{{end}}
		<button class="btn btn-primary btn-raised"><span class="glyphicon glyphicon-refresh"></span> Reload</button>
		<button class="btn btn-primary btn-raised" data-toggle="modal" data-target="#jobs_modal"><span class="glyphicon glyphicon-plus-sign"></span> Reload</button>
		<table class="table table-striped table-hover ">
			<thead>
				<th>#</th>
				<th>Host</th>
				<th>Url</th>
				<th>Status</th>
				<!--th>Status Code</th-->
				<th>Failure Reason</th>
			</thead>
			<tbody>
{{range $index, $results := .}}
		<tr class="{{.Class}}">
				<td>{{add $index 1}}</td>
				<td>{{.Host}}</td>
				<td>{{.Url}}</td>
				<td>{{.Status}}</td>
				<!--td>{{.StatusCode}}</td-->
				<td>{{.Reason}}</td>
			</tr>
{{end}}
			</tbody>
		</table>
	</div>
</div>
{{template "jobs_modal.html"}}
{{template "footer.html"}}