{#
    sbt/layout.html
    ~~~~~~~~~~~~~~~~~
    based on https://github.com/akka/akka/blob/master/akka-docs/_sphinx/themes/akka/layout.html
#}

{% extends "basic/layout.html" %}

{% set script_files = script_files + ['../../versions.js'] %}
{% set script_files = script_files + ['_static/set-versions.js'] %}

{% set css_files = css_files + ['_static/base.css'] %}
{% set css_files = css_files + ['_static/docs.css'] %}
{% set css_files = css_files + ['_static/syntax.css'] %}
{% set css_files = css_files + ['http://fonts.googleapis.com/css?family=Exo:300,400,600,700'] %}

{# do not display relbars #}
{% block relbar1 %}{% endblock %}
{% block relbar2 %}{% endblock %}

{% block content %}
  {%- block sbtheader %}
  <div class="navbar">
    <div class="navbar-inner">
      <div class="container">
        <ul class="nav">
          {%- if home_site is sameas True %}
          <li><a href="http://www.scala-sbt.org/">Home</a></li>
          {%- else %}
          <li><a href="{{ pathto('home') }}">Home</a></li>
          {%- endif %}
          <li><a href="{{ pathto('index') }}">Documentation</a></li>
          <li><a href="{{ pathto('Getting-Started/Setup') }}">Download</a></li>
          <li><a href="http://groups.google.com/group/simple-build-tool">Mailing List</a></li>
          <li><a href="http://github.com/sbt/sbt">Project</a></li>           
        </ul>
      </div>
    </div>
  </div>
  {%- endblock %}
  <div class="main">
    <div class="container">
      <div class="page-title">{{ title }}</div>
      {%- if site_search_base %}
      <div class="search-box">
        <form method="get" action="http://www.google.com/search" id="search">
          <input type="search" placeholder="Search {{release}} on Google" name="q" results="10" size="29" id="search-input">
          <input type="hidden"  name="sitesearch" value="{{site_search_base}}/"> 
          <input type="submit" id="submit-search">
        </form>
      </div>
      {%- endif %}
    </div>
    <div class="main-container">
      <div class="container">
        <div class="row">
          <div class="span12">
            <ul class="breadcrumb">        
              <li>
                {%- if next %}
                 <span class="divider">|</span> <a href="{{ next.link|e }}">{{ next.title }}</a> <span class="divider">»</span>
                {%- endif %}
              </li>
              <li>
                {%- if parents[1] %}
                 <span class="divider">&gt;</span><a href="{{ parents[1].link|e }}">{{ parents[1].title }}</a>
                {%- endif %}
              </li>
              <li>
                <a href="{{ pathto('index') }}">{{ _('Contents') }}</a>
              </li>
              <li>
                {%- if prev %}
                <span class="divider">«</span> <a href="{{ prev.link|e }}">{{ prev.title }}</a> <span class="divider">|</span> 
                {%- endif %}
              </li>
              <li>
                <select id="versions"><option selected value="{{release}}">Version {{ release|e }}</option></select>
              </li>
            </ul>         
          </div>
        </div>
        <div class="row">
          <div class="span9">
            {% block body %}{% endblock %}
          </div>
          <div class="span3">
            {%- if suppressToc is sameas True -%}
            {%- else -%}
              <p class="contents-title">{{ _('Contents') }}</p>
              <div id="scroller-anchor">
                <div id="scroller">
                  <div id="toc">{{ toc }}</div>
                </div>
              </div>            
            {%- endif -%}
          </div>
        </div>
      </div>
    </div>
  </div>  
  {% block footer %}{% endblock %}
{% endblock %}
