blob: 86f38bc44cf8e6fba4acf753db0e9aa8a6fc4597 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
{{template "header.html"}}
{{template "navbar.html"}}
{{template "jobs_modal.html"}}
{{if .Error}}
<div class="container">
<div class="row">
{{range .Error}}
<p id="dd-alert-danger" class="col-md-4 col-md-offset-4 alert alert-danger alert-dismissible shadow-z-2" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">×</span></button>
{{.}}
</p>
{{end}}
</div>
</div>
{{end}}
{{if .Success}}
<div class="container">
<div class="row">
{{range .Success}}
<p id="dd-alert-success" class="col-md-4 col-md-offset-4 alert alert-success alert-dismissible shadow-z-2" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">×</span></button>
{{.}}
</p>
{{end}}
</div>
</div>
{{end}}
<div class="container">
<div class="row">
<div class="pull-left">
<button id="btn-reload" 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> Add new host</button>
</div>
<div class="pull-right">
<form action="/logout" method="POST">
<button class="btn btn-danger btn-raised"><span class="glyphicon glyphicon-minus-sign"></span> Logout</button>
</form>
</div>
<table class="table table-striped table-hover table-responsive">
<thead>
<th>#</th>
<th>Host</th>
<th>Description</th>
<th>Status</th>
<th>Public</th>
<!--th>Status Code</th-->
<th>Last Update</th>
<th class="hide">Failure Reason</th>
<th>Delete</th>
</thead>
<tbody>
{{range $index, $results := .Hosts}}
<tr class="{{.Class}}">
<td>{{add $index 1}}</td>
<td>{{.Host}} <a href="{{.Url}}" title="{{.Url}}" title="_blank"> <span class="fa fa-external-link-square"></span></a></td>
<td>{{.Description}}</td>
<td>{{.Status}}</td>
<td><span class="glyphicon glyphicon-{{if .Private}}remove{{else}}ok{{end}}"></span>
<!--td>{{.StatusCode}}</td-->
<td>{{.UpdatedAt}}</td>
<td class="hide">{{.Reason}}</td>
<!--td><span class="glyphicon glyphicon-pencil"></span></td-->
<td class="text-center"><a value="{{.Id}}" href="#" class="delete"> <span class="fa fa-close"></span></a></td>
</tr>
{{end}}
</tbody>
</table>
<p>Next run: <strong>{{.NextRun}}</strong></p>
<div class="spull-left">
<form action="/refresh" method="POST">
<button class="btn btn-primary btn-raised"><span class="glyphicon glyphicon-refresh"></span> Update all</button>
</form>
</div>
<hr>
<form class="form-horizontal" method="POST" action="/sticky/new">
<legend><h4>Information post</h4></legend>
<textarea class="form-control shadow-z-4" id="Sticky" name="Sticky" row="3" placeholder="Sticky post.">{{.Sticky}}</textarea>
<br>
<button class="btn btn-primary btn-raised" name="Action" value="add">Submit</button>
<button class="btn btn-danger btn-raised" name="Action" value="delete">Delete</button>
</form>
</div>
</div>
{{template "footer.html"}}
|