{% set script_files = script_files + ['_static/js/bootstrap.js', '_static/ubuntu1204.js', '_static/lib/prettyprint/prettyprint.js', 'https://html5shim.googlecode.com/svn/trunk/html5.js'] %}
{% set css_files = ['_static/ubuntu1204-core.css', '_static/ubuntu1204-sphinx.css', '_static/lib/font/font-awesome.css','_static/lib/prettyprint/prettyprint.css', '_static/lib/bootstrap.min.css'] %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    {{ metatags }}
    <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
    {%- for cssfile in css_files %}
    <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
    {%- endfor %}
    {%- if use_opensearch %}
    <link rel="search" type="application/opensearchdescription+xml"
          title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
          href="{{ pathto('_static/opensearch.xml', 1) }}"/>
    {%- endif %}
    <link rel="shortcut icon" href="{{ pathto('_static/images/favicon.ico', 1) }}"/>
    <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
    <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
    <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
    <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '{{ url_root }}',
        VERSION:     '{{ release|e }}',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
        HAS_SOURCE:  {{ has_source|lower }}
      };
      WebFontConfig = { 
        google: { families: [ 'Ubuntu' ] } 
      };
    </script>
    {%- for scriptfile in script_files %}
    <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
    {%- endfor %}
    <script type="text/javascript" src="https://use.typekit.com/vkx8olt.js"></script>
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>  
  </head>
  <body onload="prettyPrint();">
<div class="container" style="border-left: 1px solid #ddd;border-right: 1px solid #ddd;height:100%;">
<header>
  <nav role="navigation" class="nav-primary">
   <ul class="clearfix">

   </ul>
  </nav>
  <a class="logo-ubuntu" href="{{ pathto(master_doc) }}"><img width="118" height="27" src="{{ pathto('_static/images/header_logo.png',1) }}" alt="Ubuntu logo"/></a>
  <h2>
  <a href="{{ pathto(master_doc) }}">{{ docstitle|e }}</a>
  </h2>
</header>
<div class="row-fluid">
<div class="span12" style="padding-right: 10px;padding-left: 10px;">
<nav role="navigation" class="nav-secondary">
<ul class="clearfix">
    {%- if pagename != "search" %}
      <form class="pull-right" style="padding-top: 5px;" action="{{ pathto('search') }}" method="get">
        <input type="submit" id="search-submit"/>
        <input style="float:right;" type="search" name="q" placeholder="Search" />
        <input type="hidden" name="check_keywords" value="yes" />
        <input type="hidden" name="area" value="default" />
      </form>
   {%- endif %}
</ul>
</nav>
</div>
</div>
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">{{ _('Table of Contents') }}</li>
{{ toctree() }}
</ul>
</div>
</div>
<div class="span9" style="padding-right: 10px;padding-left: 5px;">         
{%- block content %}
   {% block body %} {% endblock %}
{%- endblock %}
</div>
</div>

<footer class="clear">
<p><br/>
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}. Documentation Source Licensed GPLv3.{% endtrans %}
<br />
{% trans last_updated=last_updated|e %} Last Generated on {{ last_updated }}.{% endtrans %}
{% trans sphinx_version=sphinx_version|e %} Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}<br/>
{% if meta %}
{%   if meta['version'] %}
Document Version {{ meta['version'] }}
{%   endif %}
{%   if meta['authors'] %}
Authored by {{ meta['authors'] | join(', ') }}
{%   endif %}
{%   if meta['date'] %}
 {{ meta['date'] }}.
{%   endif %}
{%   if meta['version'] or meta['author'] or meta['date'] %}
<br />
{%   endif %}
{% endif %}
.</p>
<a class="logo-ubuntu" href="//www.ubuntu.com/">
<img width="118" height="27" src="{{ pathto('_static/images/logo-footer.png',1) }}" alt="Ubuntu logo"/>
</a>
</footer>
</div>
</div>
</body>
</html>
