2018-10-02 06:21:14 +00:00
|
|
|
{{define "title"}}{{CoreApp.Name}} Status{{end}}
|
2018-12-04 04:17:29 +00:00
|
|
|
{{define "description"}}{{CoreApp.Name}} is currently monitoring {{len CoreApp.Services}} services with 0 of them offline. {{CoreApp.Name}} is using Statping to monitor applications.{{end}}
|
2018-10-02 06:21:14 +00:00
|
|
|
{{define "content"}}
|
2018-06-24 11:51:07 +00:00
|
|
|
<div class="container col-md-7 col-sm-12 mt-2 sm-container">
|
2018-07-14 02:37:39 +00:00
|
|
|
<h1 class="col-12 text-center mb-4 mt-sm-3 header-title">{{.Name}}</h1>
|
2018-06-10 01:31:13 +00:00
|
|
|
|
2018-10-02 06:21:14 +00:00
|
|
|
{{ if .Description }}
|
|
|
|
<h5 class="col-12 text-center mb-5 header-desc">{{ .Description }}</h5>
|
|
|
|
{{ end }}
|
2018-06-19 04:48:25 +00:00
|
|
|
|
2019-01-03 21:09:11 +00:00
|
|
|
{{ range Groups true }}
|
2019-02-20 02:11:40 +00:00
|
|
|
{{if ne (len .Services) 0}}
|
2019-01-03 21:09:11 +00:00
|
|
|
<div class="col-12 full-col-12">
|
2019-01-10 16:47:01 +00:00
|
|
|
<h4 class="group_header">{{.Name}}</h4>
|
2019-01-03 19:13:48 +00:00
|
|
|
<div class="list-group online_list mb-3">
|
2019-04-29 18:11:44 +00:00
|
|
|
{{ range VisibleGroupServices . }}
|
2019-01-03 21:09:11 +00:00
|
|
|
<a href="#" class="service_li list-group-item list-group-item-action {{if not .Online}}bg-danger text-white{{ end }}" data-id="{{.Id}}">
|
|
|
|
{{ .Name }}
|
|
|
|
{{if .Online}}
|
|
|
|
<span class="badge bg-success float-right pulse-glow">ONLINE</span>
|
|
|
|
{{ else }}
|
|
|
|
<span class="badge bg-white text-black-50 float-right pulse">OFFLINE</span>
|
|
|
|
{{end}}
|
|
|
|
</a>
|
2019-01-03 19:13:48 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2019-01-03 21:09:11 +00:00
|
|
|
</div>
|
2019-02-20 02:11:40 +00:00
|
|
|
{{ end }}
|
2019-01-03 21:09:11 +00:00
|
|
|
{{end}}
|
2018-06-22 04:02:57 +00:00
|
|
|
|
2018-11-28 20:01:10 +00:00
|
|
|
{{ if .Messages }}
|
2018-11-29 05:25:21 +00:00
|
|
|
<div class="col-12">
|
2018-11-28 20:01:10 +00:00
|
|
|
{{range .Messages}}
|
|
|
|
<div class="alert alert-primary" role="alert">
|
|
|
|
<h3>{{.Title}}</h3>
|
|
|
|
<span class="mb-3">{{safe .Description}}</span>
|
|
|
|
<div class="d-block mt-2 mb-4">
|
2019-02-05 00:12:35 +00:00
|
|
|
<span class="float-left small">Starts on {{ToString .StartOn}}</span>
|
|
|
|
<span class="float-right small">Ends on {{ToString .EndOn}}</span>
|
2018-11-28 20:01:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2018-10-02 06:21:14 +00:00
|
|
|
<div class="col-12 full-col-12">
|
2019-02-01 04:48:18 +00:00
|
|
|
{{ if not .Services }}
|
2018-07-04 19:14:28 +00:00
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
|
<h4 class="alert-heading">No Services to Monitor!</h4>
|
2019-12-28 09:01:07 +00:00
|
|
|
<p>Your Statping Status Page is working correctly, but you don't have any services to monitor. Go to the <a href="/dashboard">Dashboard</a> and add a website to begin really using your status page!</p>
|
2018-07-04 19:14:28 +00:00
|
|
|
<hr>
|
2018-12-04 04:17:29 +00:00
|
|
|
<p class="mb-0">If this is a bug, please make an issue in the Statping Github Repo. <a href="https://github.com/hunterlong/statping" class="btn btn-sm btn-outline-danger float-right">Statping Github Repo</a></p>
|
2018-07-04 19:14:28 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-11-27 23:11:00 +00:00
|
|
|
|
2019-04-29 18:11:44 +00:00
|
|
|
{{ range VisibleServices }}
|
2019-02-01 04:48:18 +00:00
|
|
|
{{$avgTime := .AvgTime}}
|
2018-11-27 23:11:00 +00:00
|
|
|
<div class="mb-4" id="service_id_{{.Id}}">
|
2018-10-02 06:21:14 +00:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="col-12">
|
2019-02-06 18:51:30 +00:00
|
|
|
<h4 class="mt-3"><a href="/service/{{ServiceLink .}}"{{if not .Online}} class="text-danger"{{end}}>{{ .Name }}</a>
|
2018-10-02 06:21:14 +00:00
|
|
|
{{if .Online}}
|
|
|
|
<span class="badge bg-success float-right">ONLINE</span>
|
|
|
|
{{ else }}
|
|
|
|
<span class="badge bg-danger float-right pulse">OFFLINE</span>
|
|
|
|
{{end}}</h4>
|
2018-06-10 01:31:13 +00:00
|
|
|
|
2019-01-29 12:02:13 +00:00
|
|
|
<div class="row stats_area mt-5">
|
2018-10-02 06:21:14 +00:00
|
|
|
<div class="col-4">
|
2019-02-01 04:48:18 +00:00
|
|
|
<span class="lg_number">{{$avgTime}}ms</span>
|
2018-10-02 06:21:14 +00:00
|
|
|
Average Response
|
2018-07-22 22:17:38 +00:00
|
|
|
</div>
|
2018-10-02 06:21:14 +00:00
|
|
|
<div class="col-4">
|
2019-02-01 04:48:18 +00:00
|
|
|
<span class="lg_number">{{.OnlineDaysPercent 1}}%</span>
|
2018-10-02 06:21:14 +00:00
|
|
|
Uptime last 24 Hours
|
2018-06-27 06:45:00 +00:00
|
|
|
</div>
|
2018-12-13 02:35:09 +00:00
|
|
|
<div class="col-4">
|
2019-02-01 04:48:18 +00:00
|
|
|
<span class="lg_number">{{.OnlineDaysPercent 7}}%</span>
|
2018-12-13 02:35:09 +00:00
|
|
|
Uptime last 7 Days
|
|
|
|
</div>
|
2018-06-27 06:45:00 +00:00
|
|
|
</div>
|
2018-10-02 06:21:14 +00:00
|
|
|
|
2018-06-10 01:31:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-01 04:48:18 +00:00
|
|
|
{{ if $avgTime }}
|
2018-10-02 06:21:14 +00:00
|
|
|
<div class="chart-container">
|
2019-01-29 12:02:13 +00:00
|
|
|
<div id="service_{{ .Id }}"></div>
|
2018-10-02 06:21:14 +00:00
|
|
|
</div>
|
2018-06-10 01:31:13 +00:00
|
|
|
{{ end }}
|
2018-10-02 06:21:14 +00:00
|
|
|
<div class="row lower_canvas full-col-12 text-white{{if not .Online}} bg-danger{{end}}">
|
|
|
|
<div class="col-10 text-truncate">
|
|
|
|
<span class="d-none d-md-inline">{{.SmallText}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12 col-md-2">
|
2019-02-06 18:51:30 +00:00
|
|
|
<a href="/service/{{ServiceLink .}}" class="btn {{if .Online}}btn-success{{else}}btn-danger{{end}} btn-sm float-right dyn-dark btn-block">View Service</a>
|
2018-10-02 06:21:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-07 08:53:37 +00:00
|
|
|
|
2018-10-02 06:21:14 +00:00
|
|
|
</div>
|
2018-06-10 01:31:13 +00:00
|
|
|
</div>
|
2018-10-02 06:21:14 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2018-06-10 01:31:13 +00:00
|
|
|
</div>
|
2018-07-07 05:02:47 +00:00
|
|
|
{{end}}
|
2018-10-02 06:21:14 +00:00
|
|
|
{{define "extra_scripts"}}
|
2018-10-03 03:48:40 +00:00
|
|
|
<script src="/charts.js"></script>
|
2018-10-02 06:21:14 +00:00
|
|
|
{{end}}
|