Debian Codegraph @

mysqlx-connector-python/docs/mysqlx/_themes/sphinx_rtd_theme/breadcrumbs.html

raw
1 {%- if meta is defined and meta is not none %}
2 {%- set check_meta = True %}
3 {%- else %}
4 {%- set check_meta = False %}
5 {%- endif %}
6
7 {%- if check_meta and 'github_url' in meta %}
8 {%- set display_github = True %}
9 {%- endif %}
10
11 {%- if check_meta and 'bitbucket_url' in meta %}
12 {%- set display_bitbucket = True %}
13 {%- endif %}
14
15 {%- if check_meta and 'gitlab_url' in meta %}
16 {%- set display_gitlab = True %}
17 {%- endif %}
18
19 {%- set display_vcs_links = display_vcs_links if display_vcs_links is defined else True %}
20
21 {#- Translators: This is an ARIA section label for page links, including previous/next page link and links to GitHub/GitLab/etc. -#}
22 <div role="navigation" aria-label="{{ _('Page navigation') }}">
23 <ul class="wy-breadcrumbs">
24 {%- block breadcrumbs %}
25 <li><a href="{{ pathto(master_doc) }}" class="icon icon-home" aria-label="Home"></a></li>
26 {%- for doc in parents %}
27 <li class="breadcrumb-item"><a href="{{ doc.link|e }}">{{ doc.title }}</a></li>
28 {%- endfor %}
29 <li class="breadcrumb-item active">{{ title }}</li>
30 {%- endblock %}
31 {%- block breadcrumbs_aside %}
32 <li class="wy-breadcrumbs-aside">
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 %}
60 {%- endif %}
61 </li>
62 {%- endblock %}
63 </ul>
64
65 {%- if (theme_prev_next_buttons_location == 'top' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
66 {#- Translators: This is an ARIA section label for sequential page links, such as previous and next page links. -#}
67 <div class="rst-breadcrumbs-buttons" role="navigation" aria-label="{{ _('Sequential page navigation') }}">
68 {%- if prev %}
69 <a href="{{ prev.link|e }}" class="btn btn-neutral float-left" title="{{ prev.title|striptags|e }}" accesskey="p"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> {{ _('Previous') }}</a>
70 {%- endif %}
71 {%- if next %}
72 <a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n">{{ _('Next') }} <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
73 {%- endif %}
74 </div>
75 {%- endif %}
76 <hr/>
77 </div>