Debian Codegraph @

cpython27/Doc/tools/templates/layout.html

raw symbols SCIP
1 {% extends "!layout.html" %}
2 {% block header %}
3 {%- if outdated %}
4 <div id="outdated-warning" style="padding: .5em; text-align: center; background-color: #FFBABA; color: #6A0E0E;">
5 {% trans %}This document is for an old version of Python that is {% endtrans %}<a href="https://devguide.python.org/devcycle/#end-of-life-branches">{% trans %}no longer supported{% endtrans %}</a>.
6 {% trans %}You should upgrade and read the {% endtrans %}
7 <a href="https://docs.python.org/{{ language + '/' if language and language != 'en' else '' }}3/{{ pagename }}{{ file_suffix }}">{% trans %} Python documentation for the current stable release{% endtrans %}</a>.
8 </div>
9 {%- endif %}
10 {% endblock %}
11
12 {% block rootrellink %}
13 <li><img src="{{ pathto('_static/py.png', 1) }}" alt=""
14 style="vertical-align: middle; margin-top: -1px"/></li>
15 <li><a href="https://www.python.org/">Python</a>{{ reldelim1 }}</li>
16 <li>
17 {%- if switchers is defined %}
18 <span class="language_switcher_placeholder">{{ language or 'en' }}</span>
19 <span class="version_switcher_placeholder">{{ release }}</span>
20 <a href="{{ pathto('index') }}">{% trans %}Documentation{% endtrans %}</a>{{ reldelim1 }}
21 {%- else %}
22 <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
23 {%- endif %}
24 </li>
25 {% endblock %}
26 {% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
27 {% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
28 {% block extrahead %}
29 <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
30 <link rel="canonical" href="https://docs.python.org/2/{{pagename}}.html" />
31 {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
32 {% if switchers is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/switchers.js', 1) }}"></script>{% endif %}
33 {{ super() }}
34 {% if builder == 'qthelp' %}
35 <style type="text/css">
36 body { background-color: white; }
37 div.document { background-color: white; }
38 </style>
39 {% endif %}
40 {% endblock %}
41 {% block footer %}
42 <div class="footer">
43 &copy; <a href="{{ pathto('copyright') }}">{% trans %}Copyright{% endtrans %}</a> {{ copyright|e }}.
44 <br />
45 {% trans %}The Python Software Foundation is a non-profit corporation.{% endtrans %}
46 <a href="https://www.python.org/psf/donations/">{% trans %}Please donate.{% endtrans %}</a>
47 <br />
48 {% trans last_update=last_updated|e %}Last updated on {{ last_update }}.{% endtrans %}
49 {% trans pathto_bugs=pathto('bugs') %}<a href="{{ pathto_bugs }}">Found a bug</a>?{% endtrans %}
50 <br />
51 {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
52 </div>
53 {% endblock %}
54 {% block sidebarsourcelink %}
55 {%- if show_source and has_source and sourcename %}
56 <h3>{{ _('This Page') }}</h3>
57 <ul class="this-page-menu">
58 <li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
59 <li><a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
60 rel="nofollow">{% trans %}Show Source{% endtrans %}</a>
61 </li>
62 </ul>
63 {%- endif %}
64 {% endblock %}