File: breadcrumbs.html

package info (click to toggle)
neuron 8.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,760 kB
  • sloc: cpp: 149,571; python: 58,465; ansic: 50,329; sh: 3,510; xml: 213; pascal: 51; makefile: 35; sed: 5
file content (14 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% extends "!breadcrumbs.html" %}
{% block breadcrumbs_aside %}
<li class="wy-breadcrumbs-aside">
    {% set pth = pathto('.') %}
    {% if 'hoc/' in pagename %}
        {% set switch = '../' + pagename | replace("hoc/", "python/") + '.html' %}
        <a href="{{ pth }}/{{ switch }}" > {{ _('Switch to Python') }}</a>
    {% elif 'python/' in pagename %}
        {% set switch = '../' + pagename | replace("python/", "hoc/") + '.html' %}
        <a href="{{ pth }}/{{ switch }}" >  {{ _('Switch to HOC') }}</a>
    {% endif %}
</li>
{{ super() }}
{% endblock %}