-
Notifications
You must be signed in to change notification settings - Fork 35
/
index.html
154 lines (153 loc) · 4.38 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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>CIVIATS 实时状态公开报表</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
.footer {
text-align: center;
padding-top: 16px;
width: 100%;
height: 50px;
}
.wname {
font-size:16px;
}
.label-status {
margin-right: 5px;
}
.check>tbody>tr>td {
padding-top: 11px;
padding-bottom: 11px;
}
.check th {
text-align: center;
}
.check .center {
text-align: center;
vertical-align: middle;
}
.check .sertitle {
vertical-align: middle;
}
.status-success {
color: #5cb85c
}
.status-warning {
color: #f0ad4e
}
.status-danger {
color: #d9534f
}
#server-container {
border-bottom: 1px solid #ddd;
}
.barl > td {
border-top: none !important;
padding: 0 !important;
}
.barl .progress {
margin:0;
border-radius:0;
height: 8px;
box-shadow: none;
}
.barl .progress .progress-bar {
box-shadow: none;
opacity: 0.7;
}
.barl .progress .progress-bar:hover {
opacity: 1;
}
.barl .progress .progress-bar-default {
background-color: #EFEFEF;
}
.progress .tooltip .tooltip-inner .ttime {
color: #A3A3A3;
font-size: 11px;
}
</style>
</head>
<body>
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">切换导航</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./">CIVITAS 状态监控</a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="http://civitas.soobb.com/">CIVITAS</a></li>
<li><a href="http://bb.soobb.com/">驿站</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
</ul>
</div>
</div>
</div>
<div class="container">
<div id="stattip-err" class="alert alert-warning hide" role="alert">
<b>当前状态:</b>部分服务发生异常,我们将尽快修复。
</div>
<div id="stattip-ok" class="alert alert-success hide" role="alert">
<b>当前状态:</b>所有服务正常运行中,没有发现异常。
</div>
<div id="stattip-load" class="alert alert-info" role="alert">
<b>当前状态:</b>正在检测运行状态,请稍候..
</div>
<div class="table-responsive">
<table class="table table-hover check">
<thead>
<tr id="server-title">
</tr>
</thead>
<tbody id="server-container"></tbody>
</table>
</div>
</div>
<div class="footer">
<div class="container">
<p><span class="glyphicon glyphicon-refresh"></span> <span id="last-update"></span></p>
<p>Powered by <a href="https://github.com/digibart/upscuits" target="_blank">Upscuits</a> & Designed by <a href="http://coxxs.me" target="_blank">Coxxs</a></p>
<p>© 2015 CoLab. All Rights Reserved.</p>
</div>
</div>
<script type="template/mustache" id="server-template">
<tr class="{{alert}}">
<td rowspan="2" class="sertitle">
<span class="label label-status label-{{label}}"><span class="glyphicon glyphicon-{{statusicon}}"></span> {{statustxt}}</span>
<span class="wname">{{friendlyname}}</span>
</td>
{{#charts}}
<td class="center">
<span class="status-{{uptype}} set-tooltip" data-toggle="tooltip" data-placement="top" title="{{uptime}}"><span class="glyphicon glyphicon-{{upsign}}"></span></span>
</td>
{{/charts}}
</tr>
<tr class="{{alert}} barl">
<td colspan="8" class="barls">
<div class="progress">
{{#progress}}
<div class="progress-bar progress-bar-{{types}} set-tooltip" style="width: {{len}}%" data-toggle="tooltip" data-placement="top" title="{{stattip}}"></div>
{{/progress}}
</div>
</td>
</tr>
</script>
<script src="js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/mustache.min.js" type="text/javascript"></script>
<script src="js/config.js" type="text/javascript"></script>
<script src="js/upscuits.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(myApp.dashboard.init);
</script>
</body>
</html>