Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(170843)

Side by Side Diff: Doc/tools/sphinxext/layout.html

Issue 16331: Add a version switcher to python docs site
Patch Set: Created 7 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 {% extends "!layout.html" %} 1 {% extends "!layout.html" %}
2 {% block rootrellink %} 2 {% block rootrellink %}
3 <li><img src="{{ pathto('_static/py.png', 1) }}" alt="" 3 <li><img src="{{ pathto('_static/py.png', 1) }}" alt=""
4 style="vertical-align: middle; margin-top: -1px"/></li> 4 style="vertical-align: middle; margin-top: -1px"/></li>
5 <li><a href="http://www.python.org/">Python</a>{{ reldelim1 }}</li> 5 <li><a href="http://www.python.org/">Python</a>{{ reldelim1 }}</li>
6 <li><a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}< /li> 6 <li>
7 <span id="version_switcher">{{ release }}</span>
ezio.melotti 2012/10/26 19:48:52 This should probably be wrapped in an {% if not em
Yury Selivanov 2012/10/26 19:56:45 Well, in the current patch it shouldn't be, as {{
ezio.melotti 2012/10/26 20:34:11 OK
8 <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
9 </li>
7 {% endblock %} 10 {% endblock %}
8 {% block extrahead %} 11 {% block extrahead %}
9 <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" /> 12 <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
10 {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/ copybutton.js', 1) }}"></script>{% endif %} 13 {% if not embedded %}
14 <script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1 ) }}"></script>
15 <script type="text/javascript" src="{{ pathto('_static/version_switch.js ', 1) }}"></script>
16 {% endif %}
11 {% if pagename == 'whatsnew/changelog' %} 17 {% if pagename == 'whatsnew/changelog' %}
12 <script type="text/javascript"> 18 <script type="text/javascript">
13 $(document).ready(function() { 19 $(document).ready(function() {
14 // add the search form and bind the events 20 // add the search form and bind the events
15 $('h1').after([ 21 $('h1').after([
16 '<p>Filter entries by content:', 22 '<p>Filter entries by content:',
17 '<input type="text" value="" id="searchbox" style="width: 50%">', 23 '<input type="text" value="" id="searchbox" style="width: 50%">',
18 '<input type="submit" id="searchbox-submit" value="Filter"></p>' 24 '<input type="submit" id="searchbox-submit" value="Filter"></p>'
19 ].join('\n')); 25 ].join('\n'));
20 26
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 {% block sidebarsourcelink %} 89 {% block sidebarsourcelink %}
84 {%- if show_source and has_source and sourcename %} 90 {%- if show_source and has_source and sourcename %}
85 <h3>{{ _('This Page') }}</h3> 91 <h3>{{ _('This Page') }}</h3>
86 <ul class="this-page-menu"> 92 <ul class="this-page-menu">
87 <li><a href="{{ pathto('bugs') }}">Report a Bug</a></li> 93 <li><a href="{{ pathto('bugs') }}">Report a Bug</a></li>
88 <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}" 94 <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
89 rel="nofollow">Show Source</a></li> 95 rel="nofollow">Show Source</a></li>
90 </ul> 96 </ul>
91 {%- endif %} 97 {%- endif %}
92 {% endblock %} 98 {% endblock %}
OLDNEW

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+