<!DOCTYPE html>
<html{% block html_attribs %} lang="en"{% endblock html_attribs %}>
{%- block html %}
  <head>
  {%- block head %}
    <meta charset="utf-8">
    <title>{% block title %}{{title}}{% endblock title %}</title>
    {%- block meta %}
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    {%- endblock meta %}

    {%- block style %}
    <link href="{{ url_for('jquery_ui_bootstrap.static', filename='assets/css/bootstrap.min.css') }}" rel="stylesheet">
    <link rel="stylesheet" href="{{ url_for('jquery_ui_bootstrap.static', filename='css/jquery-ui-1.10.0.custom.css') }}">
    <link rel="stylesheet" href="{{ url_for('jquery_ui_bootstrap.static', filename='assets/css/font-awesome.min.css') }}">
    <!--[if IE 7]>
    <link rel="stylesheet" href="{{ url_for('jquery_ui_bootstrap.static', filename='assets/css/font-awesome-ie7.min.css') }}">
    <![endif]-->
    <!--[if lt IE 9]>
    <link rel="stylesheet" href="{{ url_for('jquery_ui_bootstrap.static', filename='css/jquery.ui.1.10.3.ie.css') }}">
    <![endif]-->
    {%- block style_navbar_padding %}
    <style>
      body {
        padding-top: 60px;
      }
    </style>
    {%- endblock style_navbar_padding %}
    {%- endblock style %}

    {%- if config['BOOTSTRAP_HTML5_SHIM'] %}
    {%- block bootstrap_html5_shim %}
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    {%- endblock bootstrap_html5_shim %}
    {%- endif %}

    {%- block favicons %}
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ url_for('jquery_ui_bootstrap.static', filename='assets/ico/apple-touch-icon-144-precomposed.png') }}">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ url_for('jquery_ui_bootstrap.static', filename='assets/ico/apple-touch-icon-114-precomposed.png') }}">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ url_for('jquery_ui_bootstrap.static', filename='assets/ico/apple-touch-icon-72-precomposed.png') }}">
    <link rel="apple-touch-icon-precomposed" href="{{ url_for('jquery_ui_bootstrap.static', filename='assets/ico/apple-touch-icon-57-precomposed.png') }}">
    <link rel="shortcut icon" href="{{ url_for('jquery_ui_bootstrap.static', filename='assets/ico/favicon.png') }}">
    {%- endblock favicons %}

  {%- endblock head %}
  </head>

  <body>
  {%- block body %}
    {%- block body_content %}
    {%- endblock body_content %}
    {%- block bootstrap_js_bottom %}
    <script src="{{ url_for('jquery_ui_bootstrap.static', filename='assets/js/jquery-1.9.0.min.js') }}"></script>
    <script src="{{ url_for('jquery_ui_bootstrap.static', filename='assets/js/bootstrap.min.js') }}"></script>
    <script src="{{ url_for('jquery_ui_bootstrap.static', filename='assets/js/jquery-ui-1.10.0.custom.min.js') }}"></script>
    {%- endblock bootstrap_js_bottom %}

    {%- if config['BOOTSTRAP_GOOGLE_ANALYTICS_ACCOUNT'] %}
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', '{{config['BOOTSTRAP_GOOGLE_ANALYTICS_ACCOUNT']}}']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
    {%- endif %}
  {%- endblock body %}
  </body>
  <!-- Font Awesome is licensed CC-BY-3.0: http://fortawesome.github.com/Font-Awesome -->
{%- endblock html %}
</html>
