Skip to content

Commit e8fea4e

Browse files
committed
Change edit on github to view on github
1 parent cf2ac69 commit e8fea4e

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

docs/source/_templates/breadcrumbs.html

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,7 @@
3131
{%- block breadcrumbs_aside %}
3232
<li class="wy-breadcrumbs-aside">
3333
{%- if hasdoc(pagename) and display_vcs_links %}
34-
{%- if display_github %}
35-
{%- if check_meta and 'github_url' in meta %}
36-
<!-- User defined GitHub URL -->
37-
<a href="{{ meta['github_url'] }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
38-
{%- else %}
39-
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode or "blob" }}/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
40-
{%- endif %}
41-
{%- elif display_bitbucket %}
42-
{%- if check_meta and 'bitbucket_url' in meta %}
43-
<!-- User defined Bitbucket URL -->
44-
<a href="{{ meta['bitbucket_url'] }}" class="fa fa-bitbucket"> {{ _('Edit on Bitbucket') }}</a>
45-
{%- else %}
46-
<a href="https://bitbucket.org/{{ bitbucket_user }}/{{ bitbucket_repo }}/src/{{ bitbucket_version}}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}?mode={{ theme_vcs_pageview_mode or "view" }}" class="fa fa-bitbucket"> {{ _('Edit on Bitbucket') }}</a>
47-
{%- endif %}
48-
{%- elif display_gitlab %}
49-
{%- if check_meta and 'gitlab_url' in meta %}
50-
<!-- User defined GitLab URL -->
51-
<a href="{{ meta['gitlab_url'] }}" class="fa fa-gitlab"> {{ _('Edit on GitLab') }}</a>
52-
{%- else %}
53-
<a href="https://{{ gitlab_host|default("gitlab.com") }}/{{ gitlab_user }}/{{ gitlab_repo }}/{{ theme_vcs_pageview_mode or "blob" }}/{{ gitlab_version }}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}" class="fa fa-gitlab"> {{ _('Edit on GitLab') }}</a>
54-
{%- endif %}
55-
{%- elif show_source and source_url_prefix %}
56-
<a href="{{ source_url_prefix }}{{ pagename }}{{ page_source_suffix }}">{{ _('View page source') }}</a>
57-
{%- elif show_source and has_source and sourcename %}
58-
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow"> {{ _('View page source') }}</a>
59-
{%- endif %}
34+
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}" class="fa fa-github"> {{ _('View on GitHub') }}</a>
6035
{%- endif %}
6136
</li>
6237
{%- endblock %}

0 commit comments

Comments
 (0)