104 lines
4.5 KiB
HTML
104 lines
4.5 KiB
HTML
$def with (main_block,sidebar_block, game_name)
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>TyeDye control panel for $game_name</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<!-- <link rel='stylesheet' type='text/css' href='/static/public/main.css'> -->
|
|
<link href="/static/public/css/bootstrap.min.css" rel="stylesheet">
|
|
<style type="text/css">
|
|
body {
|
|
padding-top: 60px;
|
|
padding-bottom: 40px;
|
|
}
|
|
.sidebar-nav {
|
|
padding: 9px 0;
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
/* Enable use of floated navbar text */
|
|
.navbar-text.pull-right {
|
|
float: none;
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
}
|
|
}
|
|
</style>
|
|
<link href="/static/public/css/bootstrap-responsive.css" rel="stylesheet">
|
|
|
|
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
|
<!--[if lt IE 9]>
|
|
<script src="../assets/js/html5shiv.js"></script>
|
|
<![endif]-->
|
|
|
|
<!-- Fav and touch icons -->
|
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/public/ico/apple-touch-icon-144-precomposed.png">
|
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/public/ico/apple-touch-icon-114-precomposed.png">
|
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/public/ico/apple-touch-icon-72-precomposed.png">
|
|
<link rel="apple-touch-icon-precomposed" href="/static/public/ico/apple-touch-icon-57-precomposed.png">
|
|
<link rel="shortcut icon" href="/static/public/ico/favicon.png">
|
|
</head>
|
|
<body>
|
|
<!-- begin navbar -->
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="navbar-inner">
|
|
<div class="container-fluid">
|
|
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="brand" href="#">TyeDye: $game_name control panel</a>
|
|
<div class="navbar-collapse collapse">
|
|
<p class="navbar-text pull-right">
|
|
Logged in as <a href="#" class="navbar-link">username</a>
|
|
</p>
|
|
<ul class="nav">
|
|
<li class="active"><a href="#">Control Panel</a></li>
|
|
<li><a href="#about">About</a></li>
|
|
<li><a href="#contact">Contact</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end navbar -->
|
|
<!-- begin blocks -->
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
<div class='span3'>
|
|
<div class="well sidebar-nav">
|
|
$:sidebar_block
|
|
</div>
|
|
</div>
|
|
<div class='span9'>
|
|
$:main_block
|
|
<!-- Out main app blocks are now in control of our backbone app -->
|
|
<div id="player_list"></div>
|
|
<script type="text/template" id="player_list_template">
|
|
<h2>$game_name quick summary</h2>
|
|
<p>Registered players: <%= player_num %></p>
|
|
<p>Registered stats: <%= stats_num %></p>
|
|
<p>Player list:<br />
|
|
<ul id="player_ul_list">
|
|
<%= listUlPlayer(player_collection) %>
|
|
</ul>
|
|
</script>
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<footer>
|
|
<p>Under GPL License v3</p>
|
|
</footer>
|
|
</div>
|
|
<!-- Le javascript
|
|
================================================== -->
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
<script src="/static/public/js/jquery.js"></script>
|
|
<script src="/static/public/js/underscore.js"></script>
|
|
<script src="/static/public/js/backbone.js"></script>
|
|
<script src="/static/public/js/app.js"></script>
|
|
</body>
|
|
</html>
|
|
|