-
Notifications
You must be signed in to change notification settings - Fork 40
/
status.html
95 lines (87 loc) · 3.22 KB
/
status.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Mikrotik Hotspot | Session Status</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
</head>
<body>
<div id="wrap">
<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-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">$(identity)</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="login">Login</a></li>
<li class="active"><a href="#">Status</a></li>
<li><a href="logout?erase-cookie=true">Logout</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
$(if error)
<div class="alert alert-danger">$(error)</div>
$(endif)
$(if login-by == 'trial')
<div class="alert alert-info">Welcome trial user!</div>
$(elif login-by != 'mac')
<div class="alert alert-info">Welcome $(username)!</div>
$(endif)
</div>
<div class="row">
<div class="panel panel-default">
<div class="panel-body">
<table class="table table-striped">
<tbody>
<tr>
<td>IP address:</td>
<td>$(ip)</td>
</tr>
<tr>
<td>bytes up/down</td>
<td>$(bytes-in-nice) / $(bytes-out-nice)</td>
</tr>
$(if session-time-left)
<tr>
<td>connected / left:</td>
<td>$(uptime) / $(session-time-left)</td>
</tr>
$(else)
<tr>
<td>connected:</td>
<td>$(uptime)</td>
</tr>
$(endif)
$(if refresh-timeout)
<tr>
<td>status refresh</td>
<td>$(refresh-timeout)</td>
$(endif)
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="container">
<p class="text-muted">Powered by MikroTik RouterOS</p>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>