blob: acf4f33de31441e174c864815b04d8c05a8766c5 [file] [log] [blame]
Georg Brandl4f1f36b2008-04-27 20:03:05 +00001{% extends "!layout.html" %}
2{% block rootrellink %}
Georg Brandl62129712008-12-07 11:54:07 +00003 <li><img src="{{ pathto('_static/py.png', 1) }}" alt=""
4 style="vertical-align: middle; margin-top: -1px"/></li>
Georg Brandl42bf4862014-10-29 08:36:15 +01005 <li><a href="https://www.python.org/">Python</a>{{ reldelim1 }}</li>
Ezio Melotti3d072062012-10-27 22:04:56 +03006 <li>
7 {%- if versionswitcher is defined %}
8 <span class="version_switcher_placeholder">{{ release }}</span>
Victor Stinnerb4929842016-01-23 12:55:11 +01009 <a href="{{ pathto('index') }}">{% trans %}Documentation{% endtrans %}</a>{{ reldelim1 }}
Ezio Melotti3d072062012-10-27 22:04:56 +030010 {%- else %}
11 <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
12 {%- endif %}
13 </li>
Georg Brandl62129712008-12-07 11:54:07 +000014{% endblock %}
Georg Brandl0fef31e2014-03-25 10:12:47 +010015{% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
16{% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
Georg Brandl62129712008-12-07 11:54:07 +000017{% block extrahead %}
18 <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
Nick Coghlan4e1e30d2017-02-09 17:00:31 +010019 <link rel="canonical" href="https://docs.python.org/2/{{pagename}}.html" />
Ezio Melottif5ea48f2012-02-25 19:24:24 +020020 {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
Ezio Melotti3d072062012-10-27 22:04:56 +030021 {% if versionswitcher is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/version_switch.js', 1) }}"></script>{% endif %}
Georg Brandl62129712008-12-07 11:54:07 +000022{{ super() }}
Georg Brandl0fef31e2014-03-25 10:12:47 +010023 {% if builder == 'qthelp' %}
24 <style type="text/css">
25 body { background-color: white; }
26 div.document { background-color: white; }
27 </style>
28 {% endif %}
Georg Brandl4f1f36b2008-04-27 20:03:05 +000029{% endblock %}
Georg Brandl4809c732009-08-04 20:22:43 +000030{% block footer %}
31 <div class="footer">
Victor Stinnerb4929842016-01-23 12:55:11 +010032 &copy; <a href="{{ pathto('copyright') }}">{% trans %}Copyright{% endtrans %}</a> {{ copyright|e }}.
Georg Brandl4809c732009-08-04 20:22:43 +000033 <br />
Victor Stinnerb4929842016-01-23 12:55:11 +010034 {% trans %}The Python Software Foundation is a non-profit corporation.{% endtrans %}
35 <a href="https://www.python.org/psf/donations/">{% trans %}Please donate.{% endtrans %}</a>
Georg Brandl4809c732009-08-04 20:22:43 +000036 <br />
Victor Stinnerb4929842016-01-23 12:55:11 +010037 {% trans last_update=last_updated|e %}Last updated on {{ last_update }}.{% endtrans %}
38 {% trans pathto_bugs=pathto('bugs') %}<a href="{{ pathto_bugs }}">Found a bug</a>?{% endtrans %}
Georg Brandle11d85c2010-04-22 22:15:33 +000039 <br />
Victor Stinnerb4929842016-01-23 12:55:11 +010040 {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
Georg Brandl4809c732009-08-04 20:22:43 +000041 </div>
42{% endblock %}
Georg Brandle11d85c2010-04-22 22:15:33 +000043{% block sidebarsourcelink %}
44{%- if show_source and has_source and sourcename %}
45<h3>{{ _('This Page') }}</h3>
46<ul class="this-page-menu">
Victor Stinnerb4929842016-01-23 12:55:11 +010047 <li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
Mariattae15259c2017-02-12 13:07:33 -080048 <li><a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('txt', 'rst') }}"
49 rel="nofollow">{% trans %}Show Source{% endtrans %}</a>
50 </li>
Georg Brandle11d85c2010-04-22 22:15:33 +000051</ul>
52{%- endif %}
53{% endblock %}