Edit breadcrumbs to only show source without github

This commit is contained in:
Eric Holscher 2013-11-08 12:21:22 -08:00
parent e82ee4f1f7
commit bd844938e3

View File

@ -4,12 +4,8 @@
<li class="wy-breadcrumbs-aside">
{% if display_github %}
<a href="https://github.com/{{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}.rst" class="icon icon-github"> Edit on GitHub</a>
{% endif %}
{% if show_source and has_source and sourcename and display_github %}
&nbsp;&laquo;&nbsp;
{% endif %}
{% if show_source and has_source and sourcename %}
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow">[source]</a>
{% elif show_source and has_source and sourcename %}
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow"> View page source</a>
{% endif %}
</li>
</ul>