show source link in breadcrumbs

This commit is contained in:
Dave Snider 2013-11-08 08:59:15 -08:00
parent d57476a187
commit 15e0cc01c7

View File

@ -1,11 +1,17 @@
<ul class="wy-breadcrumbs">
<li><a href="{{ pathto(master_doc) }}">Docs</a> &raquo;</li>
<li><a href="">{{ title }}</a></li>
{% if display_github %}
<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>
</li>
{% 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>
{% endif %}
</li>
</ul>
<hr/>