-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (49 loc) · 2.3 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
<!DOCTYPE html>
<html>
<head>
<title>OpenVPN app</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" />
<link rel="apple-touch-icon" sizes="57x57" href="https://github.com/jabbors/gopenvpn/raw/master/openvpn-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="https://github.com/jabbors/gopenvpn/raw/master/openvpn-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="114x114" href="https://github.com/jabbors/gopenvpn/raw/master/openvpn-icon-114x114.png" />
<link rel="apple-touch-icon" sizes="144x144" href="https://github.com/jabbors/gopenvpn/raw/master/openvpn-icon-144x144.png" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
{{if .Refresh}}
<meta http-equiv="refresh" content="2" />
{{end}}
</head>
<body>
<div class="container">
<div class="row">
<div class="six columns">
<div id="state">State: {{.State}}</div>
</div>
</div>
<div class="row">
<div class="six columns">
{{if .Servers}}
<form method="get" action="/start">
<select name="config">
{{range $server := .Servers}}
<option value="{{$server.Config}}">{{$server.Name}}</option>
{{end}}
</select>
<button type="submit" class="button-primary">Connect</button>
</form>
{{else}}
{{if eq .State "Disconnected"}}
<span>No configs found, add one <a href="/configs/add">here</a></span>
{{else}}
<form method="get" action="/stop">
<button type="submit" class="button-primary">Disconnect</button>
</form>
{{end}}
{{end}}
</div>
</div>
</div>
</body>
</html>