statping/source/tmpl/dashboard.html

98 lines
3.4 KiB
HTML
Raw Normal View History

2018-06-10 01:31:13 +00:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
2018-06-26 07:01:41 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1.0, user-scalable=0">
{{if USE_CDN}}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" href="https://assets.statup.io/base.css">
{{ else }}
2018-06-10 01:31:13 +00:00
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/base.css">
{{end}}
2018-06-10 01:31:13 +00:00
2018-06-10 03:44:47 +00:00
<title>Statup | Dashboard</title>
2018-06-10 01:31:13 +00:00
</head>
<body>
2018-06-24 11:51:07 +00:00
<div class="container col-md-7 col-sm-12 mt-md-5 bg-light">
2018-06-10 01:31:13 +00:00
{{template "nav" }}
2018-06-11 03:41:02 +00:00
2018-06-26 07:01:41 +00:00
<div class="col-12 mt-5">
2018-06-22 04:02:57 +00:00
2018-06-26 07:01:41 +00:00
<div class="row stats_area mb-5">
2018-06-10 01:31:13 +00:00
<div class="col-4">
2018-06-11 00:20:42 +00:00
<span class="lg_number">{{ .CountServices }}</span>
Total Services
2018-06-10 01:31:13 +00:00
</div>
<div class="col-4">
2018-06-11 00:20:42 +00:00
<span class="lg_number">{{ .Count24Failures }}</span>
Failures last 24 Hours
2018-06-10 01:31:13 +00:00
</div>
<div class="col-4">
2018-06-11 00:20:42 +00:00
<span class="lg_number">{{ .CountOnline }}</span>
Online Services
2018-06-10 01:31:13 +00:00
</div>
2018-06-11 03:41:02 +00:00
</div>
2018-06-26 07:01:41 +00:00
<div class="row mt-4">
2018-06-11 03:41:02 +00:00
<div class="col-12">
2018-06-26 07:01:41 +00:00
<h3>Services</h3>
<div class="list-group mb-5 mt-3">
{{ range .Core.Services }}
2018-06-26 07:01:41 +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">{{.Name}}</h5>
<small>{{if .Online}} <span class="badge badge-success">ONLINE</span> {{else}} <span class="badge badge-danger">OFFLINE</span> {{end}}</small>
2018-06-26 07:01:41 +00:00
</div>
2018-06-30 05:08:08 +00:00
<p class="mb-1">{{.SmallText}}</p>
2018-06-26 07:01:41 +00:00
</a>
{{ end }}
</div>
{{ range .Core.Services }}
2018-06-24 22:53:48 +00:00
{{ if .LimitedFailures }}
<h4>{{.Name}} Failures</h4>
2018-07-17 09:18:20 +00:00
<div class="list-group mt-3 mb-4">
2018-06-24 22:53:48 +00:00
{{ range .LimitedFailures }}
2018-06-22 06:56:44 +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>Reported {{.Ago}}</small>
</div>
<p class="mb-1">{{.Issue}}</p>
2018-06-22 06:56:44 +00:00
</a>
{{ end }}
</div>
2018-06-11 03:41:02 +00:00
{{ end }}
{{ end }}
2018-06-30 22:25:45 +00:00
2018-06-11 03:41:02 +00:00
</div>
2018-06-22 04:02:57 +00:00
</div>
2018-06-11 03:41:02 +00:00
</div>
2018-06-15 04:30:10 +00:00
</div>
2018-06-10 01:31:13 +00:00
2018-06-22 04:02:57 +00:00
{{template "footer"}}
{{if USE_CDN}}
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
<script src="https://assets.statup.io/main.js"></script>
{{ else }}
2018-06-10 01:31:13 +00:00
<script src="/js/jquery-3.3.1.slim.min.js"></script>
2018-06-15 04:30:10 +00:00
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main.js"></script>
{{end}}
2018-06-10 01:31:13 +00:00
</body>
</html>