blob: 8d6d3e5bd1193b1eed3d4ba79341e655c75df735 [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>
Julien Palard245dafc2017-08-08 14:14:23 +02007 {%- if switchers is defined %}
8 <span class="language_switcher_placeholder">{{ language or 'en' }}</span>
Ezio Melotti3d072062012-10-27 22:04:56 +03009 <span class="version_switcher_placeholder">{{ release }}</span>
Victor Stinnerb4929842016-01-23 12:55:11 +010010 <a href="{{ pathto('index') }}">{% trans %}Documentation{% endtrans %}</a>{{ reldelim1 }}
Ezio Melotti3d072062012-10-27 22:04:56 +030011 {%- else %}
12 <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
13 {%- endif %}
14 </li>
Georg Brandl62129712008-12-07 11:54:07 +000015{% endblock %}
Georg Brandl0fef31e2014-03-25 10:12:47 +010016{% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
17{% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
Georg Brandl62129712008-12-07 11:54:07 +000018{% block extrahead %}
19 <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
Nick Coghlan4e1e30d2017-02-09 17:00:31 +010020 <link rel="canonical" href="https://docs.python.org/2/{{pagename}}.html" />
Ezio Melottif5ea48f2012-02-25 19:24:24 +020021 {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
Julien Palard245dafc2017-08-08 14:14:23 +020022 {% if switchers is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/switchers.js', 1) }}"></script>{% endif %}
Georg Brandl62129712008-12-07 11:54:07 +000023{{ super() }}
Georg Brandl0fef31e2014-03-25 10:12:47 +010024 {% if builder == 'qthelp' %}
25 <style type="text/css">
26 body { background-color: white; }
27 div.document { background-color: white; }
28 </style>
29 {% endif %}
Georg Brandl4f1f36b2008-04-27 20:03:05 +000030{% endblock %}
Georg Brandl4809c732009-08-04 20:22:43 +000031{% block footer %}
32 <div class="footer">
Victor Stinnerb4929842016-01-23 12:55:11 +010033 &copy; <a href="{{ pathto('copyright') }}">{% trans %}Copyright{% endtrans %}</a> {{ copyright|e }}.
Georg Brandl4809c732009-08-04 20:22:43 +000034 <br />
Victor Stinnerb4929842016-01-23 12:55:11 +010035 {% trans %}The Python Software Foundation is a non-profit corporation.{% endtrans %}
36 <a href="https://www.python.org/psf/donations/">{% trans %}Please donate.{% endtrans %}</a>
Georg Brandl4809c732009-08-04 20:22:43 +000037 <br />
Victor Stinnerb4929842016-01-23 12:55:11 +010038 {% trans last_update=last_updated|e %}Last updated on {{ last_update }}.{% endtrans %}
39 {% trans pathto_bugs=pathto('bugs') %}<a href="{{ pathto_bugs }}">Found a bug</a>?{% endtrans %}
Georg Brandle11d85c2010-04-22 22:15:33 +000040 <br />
Victor Stinnerb4929842016-01-23 12:55:11 +010041 {% 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 +000042 </div>
43{% endblock %}
Georg Brandle11d85c2010-04-22 22:15:33 +000044{% block sidebarsourcelink %}
45{%- if show_source and has_source and sourcename %}
46<h3>{{ _('This Page') }}</h3>
47<ul class="this-page-menu">
Victor Stinnerb4929842016-01-23 12:55:11 +010048 <li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
Mariatta2281c042017-08-18 06:22:32 -070049 <li><a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
Mariattae15259c2017-02-12 13:07:33 -080050 rel="nofollow">{% trans %}Show Source{% endtrans %}</a>
51 </li>
Georg Brandle11d85c2010-04-22 22:15:33 +000052</ul>
53{%- endif %}
54{% endblock %}