summaryrefslogtreecommitdiffstats
path: root/source/_templates/sourcelink.html
blob: 5250a4edcd9da419a93c874071a2a3a728b2d1ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{%- if show_source and has_source and sourcename %}
  <h3>{{ _('This Page') }}</h3>
  <ul class="this-page-menu">
    <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
           rel="nofollow">{{ _('Show Source') }}</a></li>
  {%- if edit_on_github_url %}
    <li><a href="{{ edit_on_github_url }}"
           rel="nofollow">{{ _('Edit on GitHub') }}</a></li>
  {%- endif %}
  </ul>
{%- endif %}