cpython/Doc/tools/templates/customsourcelink.html
Miss Islington (bot) 20fcd83634
bpo-32924: Fix the Show Source url in the documentation (GH-25994)
(cherry picked from commit 03acfc50ac)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-05-08 11:43:59 -07:00

13 lines
489 B
HTML

{%- if show_source and has_source and sourcename %}
<div role="note" aria-label="source link">
<h3>{{ _('This Page') }}</h3>
<ul class="this-page-menu">
<li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
<li>
<a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
rel="nofollow">{{ _('Show Source') }}
</a>
</li>
</ul>
</div>
{%- endif %}