<!DOCTYPE html>
<html language="en"><head>
<meta charset="utf-8"/>
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="{{site.build_bootstrap_url('css/bootstrap.css')}}" type="text/css">
<link rel="stylesheet" href="{{site.build_media_url('lino','bootstrap.css')}}" type="text/css">
</head><body>
<div id="wrap">
  <div class="container-fluid">
    {% block header %}
    <div class="row-fluid header">
    {% if len(site.languages) > 1 -%}
      {% for lang in site.languages -%}
        {% if lang.django_code == requested_language -%}
            {{lang.django_code}}
        {% else -%}
            <a href="?ul={{lang.django_code}}">{{lang.django_code}}</a> 
        {% endif -%}
      {% endfor -%}
    {% endif -%}
    {% if site.use_extjs -%}
    &mdash;
    <a href="{{site.admin_prefix}}/">Admin</a>
    {% endif -%}
    {% if site.plain_prefix -%}
    &mdash;
    <a href="{{site.plain_prefix}}/">Plain</a>
    {% endif -%}
    </div>
    {% endblock %}
    {% block navbar %}
      {% if menu -%}
      <div class="navbar navbar-static">
        <div class="navbar-inner">
          <div class="container" style="width: auto;">
            {{menu}}
          </div>  
        </div>  
      </div>  
      {% endif -%}
    {% endblock %}
    {% block main %}
    <div class="row-fluid">
        {% block content %}
        This page has no content.
        {% endblock %}
    </div>
    {% endblock %}
  </div>
  <div id="push"></div>
</div>
<div id="footer">
<footer class="container-fluid">
{% block footer %}
<p style="vertical-align: middle;">
{% if request %}
&copy; Copyright {{now.year}} by <a href="http://{{request.get_host()}}">{{site.title}}</a>.
{% endif %}
{{E.tostring(site.welcome_html())}}
</p>
{% endblock %}
</footer>
</div>

<!-- Placed at the end of the document so the pages load faster -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="{{site.build_media_url('bootstrap','js','bootstrap.min.js')}}"></script>
</body></html>
