2013-01-24 13:44:43 -05:00
|
|
|
{% comment %}
|
|
|
|
|
|
|
|
List of block elements in this page:
|
|
|
|
page_title
|
2013-02-12 13:24:30 -05:00
|
|
|
scripts
|
|
|
|
global_scripts
|
|
|
|
page_scripts
|
2013-01-24 13:44:43 -05:00
|
|
|
navbar_title
|
|
|
|
navbar_content
|
|
|
|
sidebar
|
|
|
|
sidebar_content
|
|
|
|
body
|
|
|
|
body_content
|
|
|
|
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>{% block page_title %}{% endblock %}</title>
|
|
|
|
|
|
|
|
<link href="{{ STATIC_URL }}css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
padding-top: 60px; /* Make sure that there is a gap on the navbar. */
|
|
|
|
}
|
|
|
|
</style>
|
2013-02-12 13:24:30 -05:00
|
|
|
|
|
|
|
{# General scripts #}
|
|
|
|
{% block scripts %}
|
|
|
|
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery.min.js"></script>
|
|
|
|
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery-ui.min.js"></script>
|
|
|
|
<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
|
|
|
|
|
|
|
|
{% block global_scripts %}
|
|
|
|
<script type="text/javascript">
|
2013-02-12 14:15:21 -05:00
|
|
|
{% include global_scripts.js %}
|
2013-02-12 13:24:30 -05:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
{% block page_scripts %}
|
|
|
|
{# This block is used by each page if they want to add additional scripts. #}
|
|
|
|
{% endblock %}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% endblock %}{# endblock scripts #}
|
|
|
|
|
2013-01-24 13:44:43 -05:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2013-02-12 14:15:21 -05:00
|
|
|
{# Navbar code #}
|
|
|
|
<div class="navbar navbar-fixed-top">
|
|
|
|
<div class="navbar-inner">
|
|
|
|
<div class="container">
|
|
|
|
<a class="brand" href="#">{% block navbar_title %}{% endblock %}</a>
|
|
|
|
|
|
|
|
{% block navbar_content %}
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<a class="btn" href="#">{{ user.username }}</a>
|
|
|
|
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
|
|
|
<span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li id="btn_logout"><a href="/logout">Logout</a></li>
|
|
|
|
</ul>
|
2013-01-24 13:44:43 -05:00
|
|
|
</div>
|
2013-02-12 14:15:21 -05:00
|
|
|
{% endblock %}
|
|
|
|
|
2013-01-24 13:44:43 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-02-12 14:15:21 -05:00
|
|
|
</div>
|
2013-01-24 13:44:43 -05:00
|
|
|
|
|
|
|
<div class="container-fluid">
|
2013-01-24 19:04:29 -05:00
|
|
|
<div class="row-fluid">
|
2013-01-24 13:44:43 -05:00
|
|
|
|
|
|
|
{# Sidebar code #}
|
|
|
|
{# Note that the sidebar is its own block, so we can remove it if need be. #}
|
|
|
|
{% block sidebar %}
|
|
|
|
<div class="span3">
|
|
|
|
<div class="well sidebar-nav">
|
|
|
|
{% block sidebar_content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block body %}
|
2013-01-24 19:04:29 -05:00
|
|
|
<div class="span9">
|
2013-01-24 13:44:43 -05:00
|
|
|
{% block body_content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-02-05 15:06:31 -05:00
|
|
|
</body>
|
2013-01-24 13:44:43 -05:00
|
|
|
</html>
|