-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.html
63 lines (63 loc) · 3.28 KB
/
layout.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
<!DOCTYPE html>
<html lang="{{.Lang}}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>{{.ServiceInfo.Title}}</title>
<link href="/public/css/bootstrap.min.css" rel="stylesheet">
<link href="/public/css/user.css" rel="stylesheet">
<link href="/public/css/navbar-fixed-top.css" rel="stylesheet">
<script src='https://www.google.com/recaptcha/api.js'></script>
</head>
<body>
<script type="text/javascript" src="/public/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/public/js/validator.min.js"></script>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">{{.ServiceInfo.Title}}</a>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="/">Top</a></li>
<li><a href="/about">About</a></li>
<li><a href="/contact">Contact</a></li>
<li><a href="/contests">Contests</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
{{if ne .User ""}}
<li class="dropdown">
<a href="/home" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> {{.User}}<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/home">Home</a></li>
<li><a href="/submit">Submit</a></li>
<li><a href="/result/0">Result #0</a></li>
<li><a href="/result/1">Result #1</a></li>
<li role="separator" class="divider"></li>
<li><a href="/logout">Logout</a></li>
</ul>
</li>
{{else}}
<li><a href="/register">Register</a></li>
<li><a href="/login">Login</a></li>
{{end}}
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
{{template "content" .}}
</div>
</body>
</html>