-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
199 lines (181 loc) · 7.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title data-i18n="head.title">Upscuits | Uptime Biscuits</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="css/upscuits.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="jumbotron">
<h1><i class="icon-dashboard icon-red"></i> Upscuits <small data-i18n="head.subtitle">short for uptime-biscuit</small></h1>
<p data-i18n="head.hero">
A quick overview of your server's uptime served on a nice dinner-tray.
</p>
</div>
<!-- progress bar of loaded servers -->
<div class="progress">
<div class="progress-bar progress-bar-info loading bar" role="progressbar" aria-valuemin="0" aria-valuemax="100">
<span class="sr-only"></span>
</div>
</div>
<!-- legenda of graphs -->
<div class="row">
<div class="col-md-8 col-md-offset-4">
<div class="well well-xs">
<div class="donut">
<div class="title" data-i18n="times.Last 24 hr">Last 24 hr</div>
</div>
<div class="donut">
<div class="title" data-i18n="times.Last 7 days">Last 7 days</div>
</div>
<div class="donut">
<div class="title" data-i18n="times.Last 30 days">Last 30 days</div>
</div>
<div class="donut">
<div class="title" data-i18n="times.Last year">Last year</div>
</div>
<div class="donut">
<div class="title" data-i18n="times.All time">All time</div>
</div>
</div>
</div>
</div>
<div id="server-container"></div>
<!-- legenda of graphs (again) -->
<div class="row">
<div class="col-md-8 col-md-offset-4">
<div class="well well-xs">
<div class="donut">
<div class="title" data-i18n="times.Last 24 hr">Last 24 hr</div>
</div>
<div class="donut">
<div class="title" data-i18n="times.Last 7 days">Last 7 days</div>
</div>
<div class="donut">
<div class="title" data-i18n="times.Last 30 days">Last 30 days</div>
</div>
<div class="donut">
<div class="title" data-i18n="times.Last year">Last year</div>
</div>
<div class="donut">
<div class="title" data-i18n="times.All time">All time</div>
</div>
</div>
</div>
</div>
<!-- count down timer + progress bar -->
<div class="col-md-2">
<i class="icon-refresh"></i> <span id="last-update"></span>
</div>
<div class="progress">
<div class="progress-bar progress-bar-info countdown" role="progressbar" aria-valuemin="0" aria-valuemax="100">
<span class="sr-only"></span>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/SiecObywatelska" data-widget-id="599351747103035395">Tweety użytkownika @SiecObywatelska </a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
<!-- modal windows-->
<div class="modal fade" id="modal-about">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" data-i18n="modal-about.title">What does this page mean?</h4>
</div>
<div class="modal-body" data-i18n="[html]modal-about.content">
<p>At this page you can see the status of different servers/ apps.</p>
<p>Each gauge shows the uptime of last day, week, month, year and all time. (These calculations are not very accurate...)</p>
<p>Click on the <i class="icon-time"></i>-icon to see the log of last month. Or open the monitored page by clicking on <i class="icon-link"></i></p>
<p>The page automatically refreshes</p>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-primary" data-dismiss="modal" data-i18n="close">close</a>
</div>
</div>
</div>
</div>
<!-- navigation bar -->
<div class="navbar navbar-inverse navbar-fixed-bottom">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#"><i class="icon-dashboard icon-red"></i> Upscuits</a>
</div>
<div class="navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="#" data-toggle="modal" data-target="#modal-about"><i class="icon-info-sign"></i> <span data-i18n="nav.About">About</span></a></li>
<li><a href="http://twitter.com/pixelbak" target="_blank"><i class="icon-twitter"></i> Pixelbak</a></li>
<li><a href="https://github.com/digibart/upscuits" target="_blank"><i class="icon-code-fork"></i> <span data-i18n="nav.Fork me">Fork me</span></a></li>
<li><div class="navbar-text"><span data-i18n="nav.Created by">Created by</span> <a href="http://pixelbakkerij.nl" target="_blank" class="navbar-link"><i class="icon-user"></i> PixelBakkerij</a></div></li>
</ul>
<ul class="nav navbar-nav navbar-tight navbar-nav-language">
<li><span class="navbar-text"><i class="icon-globe"></i> </span></li>
<li><a href="?lang=en">EN</a></li>
<li><a href="?lang=fr">FR</a></li>
<li><a href="?lang=nl">NL</a></li>
<li><a href="?lang=zh">ZH</a></li>
<li><a href="?lang=el">GR</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- mustache template for server row -->
<script type="template/mustache" id="server-template">
<div class="well {{alert}}">
<div class="row">
<div class="col-md-4">
<h2>
{{friendlyname}}
<span class="label label-status label-{{label}}"><i class="{{statusicon}}"></i></span>
</h2>
<div class="btn-group">
<a href="javascript:void(0)" class="btn btn-default btn-sm log tip" title="Log of last month" data-i18n="[title]Log of last month"><i class="icon-time"></i></a>
<a href="{{url}}" target="_blank" class="btn btn-default btn-sm tip" title="Open monitored page" data-i18n="[title]Open monitored page"><i class="icon-link"></i></a>
</div>
<div class="log{{id}} hide">
<ul class="list-unstyled">
{{#log}}
<li>
<span class="btn btn-xs btn-{{labeltype}}"><i class="icon-{{typeicon}} icon-white"></i></span>
{{datetime}}
</li>
{{/log}}
</ul>
</div>
</div>
<div class="col-md-8 graphs">
{{#charts}}
<div class="donut">
<canvas width="90" height="90" uptime="{{uptime}}"></canvas>
<div class="uptime">
{{uptime}}%
</div>
</div>
{{/charts}}
</div>
</div>
</div>
</script>
<!-- mustache template for no monitors found -->
<script type="template/mustache" id="no-monitors-template">
<div class="alert alert-danger">
<strong data-i18n="no-api.Burned biscuits">Burned biscuits!</strong> <span data-i18n="no-api.content1">Seems like you forgot one ingredient: the Monitor API keys in</span> <a href="js/config.js">js/config.js</a>.<br>
<span data-i18n="no-api.content2">Did you follow all the steps in the recipe?</span> <a href="https://github.com/digibart/upscuits/blob/master/readme.md" data-i18n="no-api.readme">readme</a>
</div>
</script>
<script src="js/vendors.min.js?rel=1.4.4" type="text/javascript"></script>
<script src="js/config.js?rel=1.4.4" type="text/javascript"></script>
<script src="js/upscuits.js?rel=1.4.4" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(myApp.dashboard.init);
</script>
</body>
</html>