default.html.ep 2.16 KB
<!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/obsidian.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>