First commit to dublin branch
[doc.git] / docs / _templates / navbar.html
1 <div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
2   <!-- Outdated version warning banner -->
3   {% if version_status == 'unsupported' %}
4     <div id="unsupported_warning" >
5       This document is for a release of ONAP that is no longer supported.
6     </div>
7     <style>
8       body {
9         padding-top: 110px;
10       }
11     </style>
12   {% elif version_status == 'deprecated' %}
13     <div id="deprecated_warning" >
14       This document is for a deprecated release of ONAP and will receive only security updates.
15     </div>
16     <style>
17       body {
18         padding-top: 110px;
19       }
20     </style>
21   {% else %}
22     <style>
23       body {
24         padding-top: 60px;
25      }
26     </style>
27   {% endif %}
28     <div class="container">
29       <div class="navbar-header">
30         <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
31         <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
32           <span class="icon-bar"></span>
33           <span class="icon-bar"></span>
34           <span class="icon-bar"></span>
35         </button>
36         <a class="navbar-brand" href="{{ pathto(master_doc) }}">
37           {%- block sidebarlogo %}
38             {%- if logo %}<span><img src="{{ pathto('_static/' + logo, 1) }}"></span>{%- endif %}
39           {%- endblock %}
40           {% if theme_navbar_title -%}{{ theme_navbar_title|e }}{%- else -%}{{ project|e }}{%- endif -%}
41         </a>
42         <span class="navbar-text navbar-version pull-left"><b>{{ version|e }}</b></span>
43       </div>
44
45         <div class="collapse navbar-collapse nav-collapse">
46           <ul class="nav navbar-nav">
47             {% if theme_navbar_links %}
48               {%- for link in theme_navbar_links %}
49                 <li><a href="{{ pathto(*link[1:]) }}">{{ link[0] }}</a></li>
50               {%- endfor %}
51             {% endif %}
52             {% block navbartoc %}
53               {% include "globaltoc.html" %}
54               {% if theme_navbar_pagenav %}
55                 {% include "navbartoc.html" %}
56               {% endif %}
57             {% endblock %}
58             {% if theme_navbar_sidebarrel %}
59               {% block sidebarrel %}
60                 {% include "relations.html" %}
61               {% endblock %}
62             {% endif %}
63             {% block navbarextra %}
64             {% endblock %}
65             {% if theme_source_link_position == "nav" %}
66               <li class="hidden-sm">{% include "sourcelink.html" %}</li>
67             {% endif %}
68           </ul>
69
70           {% block navbarsearch %}
71             {% include "navbarsearchbox.html" %}
72           {% endblock %}
73         </div>
74     </div>
75   </div>
76