{% load admin_static %}{% load url from future %}<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/admin.css" %}{% endblock %}" />
{% block extrastyle %}{% endblock %}
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% static "admin/css/ie.css" %}{% endblock %}" /><![endif]-->
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %}
<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script charset="utf-8">
	if(!window.django) {
		window.django	=	{};
	}
	var django		=	window.django;
	django.jQuery	=	jQuery;
</script>
{% block extrahead %}{% endblock %}
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
</head>
{% load i18n %}
{% url 'admin:index' as admin_index %}

<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">

    {% if not is_popup %}
    <!-- Header -->
    <div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
		        {% block branding %}{% endblock %}
		        {% block nav-global %}{% endblock %}
				{% if user.is_authenticated %}
					<ul class="nav pull-right">
		                {% url 'django-admindocs-docroot' as docsroot %}
		                {% if docsroot %}
		                    <li{% if request.url == docsroot %} class="active"{% endif %}><a href="{{ docsroot }}" title="{% trans "Documentation" %}">{% trans 'Documentation' %}</a></li>
		                {% endif %}
						{% if user.is_active and user.is_staff %}
						<li class="divider-vertical"></li>
						<li class="dropdown">
							<a href="#" data-toggle="dropdown" class="dropdown-toggle">{% trans 'Welcome,' %} <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong> <i class="caret"></i></a>
				            {% block userlinks %}
								<ul class="dropdown-menu">
									<li><a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a></li>
				                	<li><a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a></li>
								</ul>
				            {% endblock %}
						</li>
						{% endif %}
			        </ul><!-- end .nav -->
				{% endif %}
			</div><!-- end .container -->
		</div><!-- end .navbar-inner -->
    </div><!-- end .navbar -->

    <!-- Content -->
    <div class="container">
	    {% block breadcrumbs %}
	    <ul class="breadcrumb">
			<li{% if request.url == admin_index %} class="active"{% endif %}>
	    		<a href="{% url 'admin:index' %}" title="{% trans "Home" %}">{% trans 'Home' %}</a>
			</li>
	    	{% if title %}<li class="active">{{ title }}</li>{% endif %}
	    </ul>
	    {% endblock %}
	    {% endif %}

	    {% block messages %}
	        {% if messages %}
	        <ul class="alerts">
	            {% for message in messages %}
	            <li{% if message.tags %} class="alert alert-{% if message.level == 20 %}info{% endif %}{% if message.level == 25 %}success{% endif %}{% if message.level == 40 %}error{% endif %}"{% endif %}>
					<button class="close" data-dismiss="alert">×</button>
					{{ message }}
				</li>
	            {% endfor %}
	        </ul>
	        {% endif %}
	    {% endblock messages %}

		<div class="row">
			<div class="{% block main_classes %}span9{% endblock main_classes %}" id="main">
		        {% block pretitle %}{% endblock %}
		        {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
	        	{% block content %}
		        {% block object-tools %}{% endblock %}
		        {{ content }}
		        {% endblock %}
			</div><!-- end .span9 -->
			<div class="span3" id="sb">
	        	{% block sidebar %}{% endblock %}
			</div><!-- end .span3 -->
		</div><!-- end .row -->
    </div><!-- end .container -->
    <!-- END Content -->

    {% block footer %}<div id="footer"></div>{% endblock %}
	<script src="{% static "admin/js/bootstrap-dropdown.js" %}"></script>
	<script src="{% static "admin/js/bootstrap-alert.js" %}"></script>
	<script src="{% static "admin/js/bootstrap-modal.js" %}"></script>
	{% block extrascripts %}{% endblock extrascripts %}
</body>
</html>
