diff options
| author | Horus3 | 2015-02-25 16:41:52 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-25 16:41:52 +0100 |
| commit | 49ffcba2c3c4a19d147dd792d7f6c99b7545a491 (patch) | |
| tree | 4fbd8a283ef7ab13f92e11e5030ad5c362be4524 /views/admin.html.copy | |
| parent | 9e1d8d0fb2b57903b1c6c0c2765b7808655c74a0 (diff) | |
| download | statuspage-49ffcba2c3c4a19d147dd792d7f6c99b7545a491.tar.gz | |
UX on front end.
Diffstat (limited to 'views/admin.html.copy')
| -rw-r--r-- | views/admin.html.copy | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/views/admin.html.copy b/views/admin.html.copy new file mode 100644 index 0000000..17f5c87 --- /dev/null +++ b/views/admin.html.copy @@ -0,0 +1,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">×</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">×</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"}} |
