summaryrefslogtreecommitdiff
path: root/views/admin.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/admin.html')
-rw-r--r--views/admin.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/views/admin.html b/views/admin.html
index e69de29..f80c541 100644
--- a/views/admin.html
+++ b/views/admin.html
@@ -0,0 +1,60 @@
+{{template "header.html"}}
+{{template "navbar.html"}}
+
+{{if .Error}}
+<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}}
+ </div>
+</div>
+{{end}}
+{{if .Success}}
+<div class="container">
+ <div class="row">
+{{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}}
+ </div>
+</div>
+{{end}}
+<div class="container">
+ <div class="row">
+ <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>
+ <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>
+ <th>Delete</th>
+ </thead>
+ <tbody>
+{{range $index, $results := .Hosts}}
+ <tr class="{{.Class}}">
+ <td>{{add $index 1}}</td>
+ <td>{{.Host}}</td>
+ <td>{{.Url}}</td>
+ <td>{{.Status}}</td>
+ <!--td>{{.StatusCode}}</td-->
+ <td>{{.Reason}}</td>
+ <!--td><span class="glyphicon glyphicon-pencil"></span></td-->
+ <td>&times;</td>
+ </tr>
+{{end}}
+ </tbody>
+ </table>
+ </div>
+</div>
+{{template "jobs_modal.html"}}
+{{template "footer.html"}}