2018-10-02 06:21:14 +00:00
{{define "title"}}Statup | Dashboard{{end}}
{{define "content"}}
2018-06-24 11:51:07 +00:00
< div class = "container col-md-7 col-sm-12 mt-md-5 bg-light" >
2018-08-21 03:11:40 +00:00
{{template "nav" }}
2018-08-22 05:41:15 +00:00
< div class = "col-12 mt-3" >
2018-10-02 06:21:14 +00:00
< div class = "row stats_area mb-5" >
< div class = "col-4" >
< span class = "lg_number" > {{ CoreApp.ServicesCount }}< / span >
Total Services
< / div >
< div class = "col-4" >
< span class = "lg_number" > {{ CoreApp.Count24HFailures }}< / span >
Failures last 24 Hours
< / div >
< div class = "col-4" >
< span class = "lg_number" > {{ CoreApp.CountOnline }}< / span >
Online Services
< / div >
2018-06-10 01:31:13 +00:00
< / div >
2018-10-02 06:21:14 +00:00
< div class = "row mt-4" >
< div class = "col-12" >
2018-11-13 19:28:21 +00:00
{{if eq (len CoreApp.Services) 0}}
< div class = "jumbotron jumbotron-fluid" >
< div class = "text-center" >
< h1 class = "display-4" > No Services!< / h1 >
< a class = "lead" > You don't have any websites or applications being monitored by your Statup server. < p > < a href = "/services" class = "btn btn-secondary mt-3" > Add Service< / a > < / p > < / p >
< / div >
< / div >
{{else}}
2018-10-02 06:21:14 +00:00
< div class = "list-group mb-5 mt-3" >
{{ range Services }}
< a href = "#" class = "list-group-item list-group-item-action flex-column align-items-start" >
< div class = "d-flex w-100 justify-content-between" >
< h5 class = "mb-1" > {{.Name}}< / h5 >
< small > {{if .Online}} < span class = "badge badge-success" > ONLINE< / span > {{else}} < span class = "badge badge-danger" > OFFLINE< / span > {{end}}< / small >
< / div >
< p class = "mb-1" > {{.SmallText}}< / p >
< / a >
2018-11-13 19:28:21 +00:00
{{ end }}
{{end}}
2018-10-02 06:21:14 +00:00
< / div >
2018-06-26 07:01:41 +00:00
2018-09-08 22:16:26 +00:00
{{ range Services }}
2018-11-08 10:50:06 +00:00
{{$failures := .LimitedFailures 16}}
{{ if $failures }}
2018-10-02 06:21:14 +00:00
< h4 class = "text-truncate" > {{.Name}} Failures< / h4 >
< div class = "list-group mt-3 mb-4" >
2018-11-08 10:50:06 +00:00
{{ range $failures }}
2018-10-02 06:21:14 +00:00
< a href = "#" class = "list-group-item list-group-item-action flex-column align-items-start" >
< div class = "d-flex w-100 justify-content-between" >
< h5 class = "mb-1" > {{.ParseError}}< / h5 >
< small > {{.Ago}}< / small >
< / div >
< p class = "mb-1" > {{.Issue}}< / p >
< / a >
2018-06-11 03:41:02 +00:00
{{ end }}
2018-10-02 06:21:14 +00:00
< / div >
{{ end }}
{{ end }}
2018-06-30 22:25:45 +00:00
2018-06-11 03:41:02 +00:00
2018-10-02 06:21:14 +00:00
< / div >
2018-06-11 03:41:02 +00:00
< / div >
2018-06-22 04:02:57 +00:00
< / div >
2018-06-15 04:30:10 +00:00
< / div >
2018-07-07 05:02:47 +00:00
{{end}}