Home | History | Annotate | Download | only in templates
      1 {% extends "!layout.html" %}
      2 {% block rootrellink %}
      3         <li><img src="{{ pathto('_static/py.png', 1) }}" alt=""
      4                  style="vertical-align: middle; margin-top: -1px"/></li>
      5         <li><a href="https://www.python.org/">Python</a>{{ reldelim1 }}</li>
      6         <li>
      7           {%- if versionswitcher is defined %}
      8           <span class="version_switcher_placeholder">{{ release }}</span>
      9           <a href="{{ pathto('index') }}">{% trans %}Documentation{% endtrans %}</a>{{ reldelim1 }}
     10           {%- else %}
     11           <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
     12           {%- endif %}
     13         </li>
     14 {% endblock %}
     15 {% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
     16 {% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
     17 {% block extrahead %}
     18     <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
     19     {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
     20     {% if versionswitcher is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/version_switch.js', 1) }}"></script>{% endif %}
     21 {{ super() }}
     22     {% if builder == 'qthelp' %}
     23     <style type="text/css">
     24     body { background-color: white; }
     25     div.document { background-color: white; }
     26     </style>
     27     {% endif %}
     28 {% endblock %}
     29 {% block footer %}
     30     <div class="footer">
     31     &copy; <a href="{{ pathto('copyright') }}">{% trans %}Copyright{% endtrans %}</a> {{ copyright|e }}.
     32     <br />
     33     {% trans %}The Python Software Foundation is a non-profit corporation.{% endtrans %}
     34     <a href="https://www.python.org/psf/donations/">{% trans %}Please donate.{% endtrans %}</a>
     35     <br />
     36     {% trans last_update=last_updated|e %}Last updated on {{ last_update }}.{% endtrans %}
     37     {% trans pathto_bugs=pathto('bugs') %}<a href="{{ pathto_bugs }}">Found a bug</a>?{% endtrans %}
     38     <br />
     39     {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
     40     </div>
     41 {% endblock %}
     42 {% block sidebarsourcelink %}
     43 {%- if show_source and has_source and sourcename %}
     44 <h3>{{ _('This Page') }}</h3>
     45 <ul class="this-page-menu">
     46   <li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
     47   <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
     48          rel="nofollow">{% trans %}Show Source{% endtrans %}</a></li>
     49 </ul>
     50 {%- endif %}
     51 {% endblock %}
     52