summaryrefslogtreecommitdiff
path: root/views/index.html
diff options
context:
space:
mode:
authorHorus32015-02-27 04:02:15 +0100
committerHorus32015-02-27 04:02:15 +0100
commit6837ddf68f13a1633ea868ab55d71389ca5bc175 (patch)
tree94fbfabdfa4506eb1b2dbf0067a7c0fa87f294c9 /views/index.html
parent60767a3ea8190d3f070f3aae86c2d72ffb10cfd6 (diff)
downloadstatuspage-6837ddf68f13a1633ea868ab55d71389ca5bc175.tar.gz
Version 0.2. Sends E-Mails now. Also sticky post on index page to quickly inform people. Concatenated all CSS and JavaScript files.
Diffstat (limited to 'views/index.html')
-rw-r--r--views/index.html32
1 files changed, 27 insertions, 5 deletions
diff --git a/views/index.html b/views/index.html
index cc6ca9d..2c75c8b 100644
--- a/views/index.html
+++ b/views/index.html
@@ -1,32 +1,54 @@
{{template "header.html"}}
{{template "navbar.html"}}
+{{if .Sticky}}
+<div class="container">
+ <div class="row">
+ <!--div class="col-md-6 col-md-offset-3"-->
+ <!--div class="col-md-4 col-md-offset-4 panel panel-danger shadow-z-2" role="panel"-->
+ <div class="panel panel-info shadow-z-2" role="panel" id="dd-sticky">
+ <div class="panel-heading"><h3 class="panel-title">Information</h3></div>
+ <div class="panel-body">
+ <strong>{{print .Sticky}}</strong>
+ </div>
+ </div>
+ <!--/div-->
+ </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>
<!--a id="" class="btn btn-success btn-raised toggle"><span class="glyphicon glyphicon-refresh"></span> Show failure reasons</a-->
- <table class="table table-striped table-hover ">
+ <table class="table table-striped table-hover table-responsive">
<thead>
<th>#</th>
<th>Host</th>
- <th>Url</th>
+ <th>Description</th>
<th>Status</th>
<!--th>Status Code</th-->
+ <th>Last Update</th>
<th class="hide">Failure Reason</th>
</thead>
<tbody>
-{{range $index, $results := .}}
+{{range $index, $results := .Hosts}}
<tr class="{{.Class}}">
<td>{{add $index 1}}</td>
- <td>{{.Host}}</td>
- <td>{{.Url}}</td>
+ <td>{{.Host}} <a href="{{.Url}}" title="{{.Host}}" target="_blank"> <span class="fa fa-external-link-square"></span></a></td>
+ <td>{{.Description}}</td>
<td>{{.Status}}</td>
<!--td>{{.StatusCode}}</td-->
+ <td>{{.UpdatedAt}}</td>
<td class="hide">{{.Reason}}</td>
</tr>
{{end}}
</tbody>
</table>
+ <p>Next run: <strong>{{.NextRun}}</strong></p>
+ <!--button class="admin-link btn btn-raised btn-default"><h4 class=""><span class="glyphicon glyphicon-cog"></span> Admin</h4></button-->
+ <!--h4 class="admin-link"><a class="" href="/admin" title="admin"><span class="glyphicon glyphicon-cog"></span> Admin</a></h4-->
+ <h4 class="admin-link"><a class="" href="/admin" title="admin"><span class="fa fa-cog"></span> Admin</a></h4>
</div>
</div>
{{template "footer.html"}}