Debian Codegraph @

docs/_templates/breadcrumbs.html

raw
1 {% extends "!breadcrumbs.html" %}
2 {% block breadcrumbs_aside %}
3 <li class="wy-breadcrumbs-aside">
4 {% set pth = pathto('.') %}
5 {% if 'hoc/' in pagename %}
6 {% set switch = '../' + pagename | replace("hoc/", "python/") + '.html' %}
7 <a href="{{ pth }}/{{ switch }}" > {{ _('Switch to Python') }}</a>
8 {% elif 'python/' in pagename %}
9 {% set switch = '../' + pagename | replace("python/", "hoc/") + '.html' %}
10 <a href="{{ pth }}/{{ switch }}" > {{ _('Switch to HOC') }}</a>
11 {% endif %}
12 </li>
13 {{ super() }}
14 {% endblock %}