Skip to content

Commit bba3667

Browse files
authored
Merge branch 'master' into Blendify/python-compat
2 parents fe934ec + c984d08 commit bba3667

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

sphinx_rtd_theme/breadcrumbs.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
{#- Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #}
2-
3-
{%- if page_source_suffix %}
4-
{%- set suffix = page_source_suffix %}
5-
{%- else %}
6-
{%- set suffix = source_suffix %}
7-
{%- endif %}
8-
91
{%- if meta is defined and meta is not none %}
102
{%- set check_meta = True %}
113
{%- else %}
@@ -43,24 +35,24 @@
4335
<!-- User defined GitHub URL -->
4436
<a href="{{ meta['github_url'] }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
4537
{%- else %}
46-
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode or "blob" }}/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ suffix }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
38+
<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>
4739
{%- endif %}
4840
{%- elif display_bitbucket %}
4941
{%- if check_meta and 'bitbucket_url' in meta %}
5042
<!-- User defined Bitbucket URL -->
5143
<a href="{{ meta['bitbucket_url'] }}" class="fa fa-bitbucket"> {{ _('Edit on Bitbucket') }}</a>
5244
{%- else %}
53-
<a href="https://bitbucket.org/{{ bitbucket_user }}/{{ bitbucket_repo }}/src/{{ bitbucket_version}}{{ conf_py_path }}{{ pagename }}{{ suffix }}?mode={{ theme_vcs_pageview_mode or "view" }}" class="fa fa-bitbucket"> {{ _('Edit on Bitbucket') }}</a>
45+
<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>
5446
{%- endif %}
5547
{%- elif display_gitlab %}
5648
{%- if check_meta and 'gitlab_url' in meta %}
5749
<!-- User defined GitLab URL -->
5850
<a href="{{ meta['gitlab_url'] }}" class="fa fa-gitlab"> {{ _('Edit on GitLab') }}</a>
5951
{%- else %}
60-
<a href="https://{{ gitlab_host|default("gitlab.com") }}/{{ gitlab_user }}/{{ gitlab_repo }}/{{ theme_vcs_pageview_mode or "blob" }}/{{ gitlab_version }}{{ conf_py_path }}{{ pagename }}{{ suffix }}" class="fa fa-gitlab"> {{ _('Edit on GitLab') }}</a>
52+
<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>
6153
{%- endif %}
6254
{%- elif show_source and source_url_prefix %}
63-
<a href="{{ source_url_prefix }}{{ pagename }}{{ suffix }}">{{ _('View page source') }}</a>
55+
<a href="{{ source_url_prefix }}{{ pagename }}{{ page_source_suffix }}">{{ _('View page source') }}</a>
6456
{%- elif show_source and has_source and sourcename %}
6557
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow"> {{ _('View page source') }}</a>
6658
{%- endif %}

0 commit comments

Comments
 (0)