{% load staticfiles i18n %}
{% load global_settings_extras %}
{% get_global_model 'global_settings.SiteConfiguration' as site_config %}
<!DOCTYPE html>
<html>
	<head>
		{% block meta_tags %}{% endblock %}
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>
			{% block title %}{{ site_config.site_name }}{% endblock %}
		</title>
		{% block stylesheets %}
			<link rel="stylesheet" href="{% static "radio/css/bootstrap.min.css" %}" type="text/css" />
			<link rel="stylesheet" href="{% static "radio/css/jumbotron.css" %}" type="text/css" />
			<link rel="stylesheet" href="{% static "radio/css/sticky-footer.css" %}" type="text/css" />
			<link rel="stylesheet" href="{% static "radio/css/radioco.css" %}" type="text/css" />
		{% endblock %}
		{% block javascript %}
			<script src="{% static "radio/js/jquery-2.1.0.min.js" %}" type="text/javascript"></script>
			<script src="{% static "radio/js/bootstrap.min.js" %}" type="text/javascript"></script>
		{% endblock %}
		{% block extra_head %}{% endblock %}
	</head>
	<body>
		<!-- Fixed navbar -->
		<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
			<div class="container">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="/">{{ site_config.site_name }}</a>
				</div>
				<div class="navbar-collapse collapse">
					<ul class="nav navbar-nav">
						<li {% block index_class %}{% endblock %}><a href="/">{% trans "home"|title %}</a></li>
						<li {% block schedules_class %}{% endblock %}><a href="{% url 'schedules:list' %}">{% trans "schedules"|title %}</a></li>
						<li {% block programmes_class %}{% endblock %}><a href="{% url 'programmes:list' %}">{% trans "programmes"|title %}</a></li>
						<li {% block users_class %}{% endblock %}><a href="{% url 'users:list' %}">{% trans "people"|title %}</a></li>
					</ul>
					<ul class="nav navbar-nav navbar-right">
						{% if user.is_authenticated %}
						    <li><a href="{% url 'logout' %}">{% trans "Logout"|title %}</a></li>
						{% else %}
						    <li {% block login_class %}{% endblock %}><a href="{% url 'login' %}">{% trans "Log in"|title %}</a></li>
						{% endif %}
		            </ul>
				</div>
				<!--/.nav-collapse -->
			</div>
		</div>
		{% block header_content %}{% endblock %}
		<div class="container">
			{% block content %}
			{% endblock %}
		</div>
		<!-- /container -->
		<div class="footer">
			<div class="container">
				<p class="text-muted"><a href="http://radioco.org/" target="_blank"> <span class="glyphicon glyphicon-wrench"></span> RadioCo</a></p>
			</div>
		</div>
	</body>
</html>