{%- if show_source and has_source and sourcename and edit_on_github_url %}
  <h3>{{ _('This Page') }}</h3>
  <ul class="this-page-menu">
    <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
           rel="nofollow">{{ _('Show Source') }}</a></li>
    <li><a href="{{ show_on_github_url }}"
           rel="nofollow">{{ _('Show on GitHub') }}</a></li>
    <li><a href="{{ edit_on_github_url }}"
           rel="nofollow">{{ _('Edit on GitHub') }}</a></li>
  </ul>
{%- endif %}
