default.html.ep
2.16 KB
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
<!doctype html>
<html>
<head>
<title>Minecraft style | <%= title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link href="/css/bootstrap.css" rel="stylesheet" media="screen">
<link href="/css/mystyle.css" rel="stylesheet" media="screen">
<script src="http://code.jquery.com/jquery.js"></script>
<script src="/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="/css/bootstrap-wysihtml5.css">
<script src="/js/bootstrap-wysihtml5.js"></script>
<link href="/css/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/prettify.js"></script>
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="/">Minecraft style | <%= title %></a>
<ul class="nav">
<li><a href="/">Home</a></li>
<li><a href="/download">Download</a></li>
<li><a href="/wiki">wiki</a></li>
</ul>
<ul class="nav pull-right">\
% if ( my $login = session 'login' ) {
<li class="divider-vertical"></li>
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">
Admin <strong class="caret"></strong>
</a>
<ul class="dropdown-menu">
<li><a href="/logout">Logout</a></li>
</ul>
</li>
% } else {
<li class="divider-vertical"></li>
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">
Sign In <strong class="caret"></strong>
</a>
<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">
<form method="post" action="/login" accept-charset="UTF-8">
<input style="margin-bottom: 15px;" type="text" placeholder="Username" id="username" name="username">
<input style="margin-bottom: 15px;" type="password" placeholder="Password" id="password" name="password">
<input class="btn btn-primary btn-block" type="submit" id="sign-in" value="Sign In">
</form>
</div>
</li>
% }
</ul>
</div>
</div>
<div id="wrapper" class="container">
<%= content %>
</div>
<script>
// @prettify
!function ($) {
$(function(){
window.prettyPrint && prettyPrint()
})
}(window.jQuery);
// #prettify
</script>
</body>
</html>