{% extends "!layout.html" %}
{% block sidebartitle %}

{% if logo and theme_logo_only %}
<a href="{{ pathto(master_doc) }}">
{% else %}
<a href="{{ pathto(master_doc) }}" class="icon icon-home" alt="{{ _("Documentation Home") }}"> {{ project }}
{% endif %}

{% if logo %}
{# Not strictly valid HTML, but it's the only way to display/scale
    it properly, without weird scripting or heaps of work
#}
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/>
{% endif %}
</a>

{% if theme_display_version %}
{%- set nav_version = version %}
{% if READTHEDOCS and current_version %}
    {%- set nav_version = current_version %}
{% endif %}
{% if nav_version %}

<div class="version">
version: <select style="padding: 0;" onchange="location = this.value;" autocomplete="off">
{% for ver in versions.split(',') %}
  <option value="/pya/{{ver}}/" {% if ver == version %}selected="selected"{% endif %}>{{ver}}</option>
{% endfor %}
<select>
</div>


{% endif %}
{% endif %}

{% include "searchbox.html" %}

{% endblock %}
