|
31 | 31 | {%- block breadcrumbs_aside %} |
32 | 32 | <li class="wy-breadcrumbs-aside"> |
33 | 33 | {%- 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> |
60 | 35 | {%- endif %} |
61 | 36 | </li> |
62 | 37 | {%- endblock %} |
|
0 commit comments