sidenav.html 2.17 KB
Newer Older
Hiro's avatar
Hiro committed
1
2
3
4
5
6
<div class="container-fluid sidebar col-xs-12 col-sm-12 col-md-3 col-lg-3">
  <nav class="smalltopics no-background navbar navbar-expand-lg navbar-light bg-white p-0 fixed">
    <a class="text-primary bg-white font-weight-bold navbar-brand" href="#collapseTopicsNav">
	{{ _('Topics') }}
    </a>
    <label class="side-toggler" for="menu-toggle">
7
8
      <a class="btn btn-lg outline-primary text-primary navbar-toggler" data-toggle="collapse" data-target="#navbarSupportedTopicsContent" aria-controls="navbarSupportedTopicsContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
Hiro's avatar
Hiro committed
9
10
11
12
13
14
15
16
      </a>
    </label>
    <input type="checkbox" id="menu-toggle"/>

    <div class="collapse navbar-collapse burger-menu" id="navbarSupportedTopicsContent">
      <ul class="nav nav-pills flex-column">
	{% set topicbag = 'topics+en' %}
	{% for id, item in bag(topicbag).items() %}
Hiro's avatar
Hiro committed
17
18
19
20
21
22
23
24
25
    <li{% if this.is_child_of(item.path) %} class="nav-item" {% else %} class="toc-entry toc-h2 nav-item"{% endif %}>
      <a role="button" {% if this.is_child_of(item.path) %} class="side-nav active" {% else %} class="side-nav" {% endif %}
      {% if this.is_child_of(this.parent) %}
        href="../../{{ item.path }}">
      {% else %}
        href="{{ item.path }}">
      {% endif %}
      {{ _(item.label) }}</a>
    </li>
Hiro's avatar
Hiro committed
26
27
28
29
30
31
32
33
34
35
36
37
	{% endfor %}
    </ul>
    </div>
    <hr class="mb-0" />
  </nav>


  <nav class="d-none d-sm-block section-nav bg-white sidetopics sticky" id="sidenav-topics">
          <h4 class="text-primary pl-4">{{ _('Topics') }}</h4>
    <ul class="nav nav-pills flex-column">
      {% set topicbag = 'topics+en' %}
      {% for id, item in bag(topicbag).items() %}
Hiro's avatar
Hiro committed
38
39
40
41
42
43
44
45
        <li{% if this.is_child_of(item.path) %} class="nav-item" {% else %} class="toc-entry toc-h2 nav-item"{% endif %}>
          <a role="button" {% if this.is_child_of(item.path) %} class="side-nav active" {% else %} class="side-nav" {% endif %}
          {% if this.is_child_of(this.parent) %}
            href="../../{{ item.path }}">
          {% else %}
            href="{{ item.path }}">
          {% endif %}
          {{ _(item.label) }}</a>
Hiro's avatar
Hiro committed
46
47
48
49
50
51
      </li>

      {% endfor %}
    </ul>
  </nav>
</div>