andre@934: {%- extends "basic/layout.html" %}
andre@934: {%- from "relbar.html" import relbar_top with context %}
andre@934: {%- from "relbar.html" import relbar_bottom with context %}
andre@934: 
andre@934: {#- ### head ### -#}
andre@934: 
andre@934: {%- block extrahead %}
andre@934: 
andre@934:   {#- make mobile reasonable #}
andre@934:   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
andre@934: 
andre@934:   {%- for css_file in theme_cssfiles %}
andre@934:     {%- if css_file.startswith('http') %}
andre@934:       <link rel="stylesheet" href="{{ css_file }}" type="text/css" />
andre@934:     {%- else %}
andre@934:       <link rel="stylesheet" href="{{ pathto(css_file, 1) }}" type="text/css" />
andre@934:     {%- endif %}
andre@934:   {%- endfor %}
andre@934: 
andre@934:   {%- for js_file in theme_scriptfiles %}
andre@934:     <script src="{{ pathto(js_file, 1) }}" type="text/javascript"></script>
andre@934:   {%- endfor %}
andre@934: 
andre@934:   {%- if theme_inlinecss %}
andre@934:     <style type="text/css">{{ theme_inlinecss|safe }}</style>
andre@934:   {%- endif %}
andre@934: 
andre@934:   {%- block userhead %}
andre@934:   {%- endblock %}
andre@934: {%- endblock %}
andre@934: 
andre@934: {#- ### content ### -#}
andre@934: 
andre@934: {%- block header %}
andre@934:   {%- if theme_showheader|tobool %}
andre@934:     <header id="pageheader"><h1><a href="{{ pathto(master_doc) }} ">
andre@934:         {{ docstitle }}
andre@934:     </a></h1></header>
andre@934:   {%- endif %}
andre@934: {%- endblock %}
andre@934: 
andre@934: {%- block relbar1 -%}{{ relbar_top() }}{%- endblock -%}
andre@934: {%- block relbar2 -%}{{ relbar_bottom() }}{%- endblock -%}
andre@934: 
andre@934: {%- block footer %}
andre@934:   <footer id="pagefooter">
andre@934: 
andre@934:     {%- if show_copyright %}
andre@934:       {%- if hasdoc('copyright') %}
andre@934:         {% trans path=pathto('copyright'), copyright=copyright|e %}
andre@934:           <a href="{{ path }}">&copy; {{ copyright }} </a>.
andre@934:         {% endtrans %}
andre@934:       {%- else %}
andre@934:         {%- trans copyright=copyright|e -%}
andre@934:           &copy; {{ copyright }}.
andre@934:         {%- endtrans %}
andre@934:       {%- endif %}
andre@934:     {%- endif %}
andre@934: 
andre@934:     {%- if last_updated %}
andre@934:       {%- trans last_updated=last_updated|e -%}
andre@934:         Last updated on {{ last_updated }}.
andre@934:       {%- endtrans %}
andre@934:     {%- endif %}
andre@934: 
andre@934:     {%- if show_sphinx %}
andre@934:       Created using <a href="http://sphinx-doc.org/">Sphinx</a>
andre@934:       {{ sphinx_version }}
andre@934:       {%- if theme_linktotheme|tobool %}
andre@934:         with the <a href="http://github.com/irskep/sphinx-better-theme">
andre@934:           better</a> theme
andre@934:       {%- endif %}.
andre@934:     {%- else %}
andre@934:       {%- if theme_linktotheme %}
andre@934:         This site uses the
andre@934:         <a href="http://github.com/irskep/sphinx-better-theme">
andre@934:         &ldquo;better&rdquo;</a>
andre@934:         theme for Sphinx.
andre@934:       {%- endif %}
andre@934:     {%- endif %}
andre@934: 
andre@934:   </footer>
andre@934: 
andre@934:   {% if theme_ga_ua %}
andre@934:     <script>
andre@934:       (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
andre@934:       (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
andre@934:       m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
andre@934:       })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
andre@934: 
andre@934:       ga('create', '{{ theme_ga_ua }}', '{{ theme_ga_domain }}');
andre@934:       ga('send', 'pageview');
andre@934:     </script>
andre@934:   {% endif %}
andre@934: {%- endblock %}