1
|
{% set current_lang = request.environ.CKAN_LANG %}
|
2
|
{% set current_page = request.environ.CKAN_CURRENT_URL %}
|
3
|
<nav id="t3-mainnav" class="wrap navbar navbar-default navbar-fixed-top t3-mainnav">
|
4
|
<div class="container">
|
5
|
<div class="navbar-header">
|
6
|
<button class="btn btn-primary visible-xs-inline-block off-canvas-toggle " type="button" data-pos="left" data-nav="#t3-off-canvas" data-effect="off-canvas-effect-4">
|
7
|
<i class="fa fa-bars"></i>
|
8
|
</button>
|
9
|
</div>
|
10
|
<div class="t3-navbar navbar-collapse collapse" id="t3-off-canvas">
|
11
|
<ul class="nav navbar-nav">
|
12
|
<li class="item-107 current">
|
13
|
<a class="logo" href="{{ g.ozwillo_url }}/{{current_lang}}"><img src="/img/logo-h43.png" alt="{% trans %}Home{% endtrans %}"></a>
|
14
|
</li>
|
15
|
<li class="item-108">
|
16
|
<a class="nav-apps" href="{{ g.ozwillo_portal_url }}/{{current_lang}}/store?ui_locales={{current_lang}}">{% trans %}Catalog{% endtrans %}</a>
|
17
|
</li>
|
18
|
{% if c.userobj %}
|
19
|
<li class="item-119 deeper dropdown parent">
|
20
|
<a class="dropdown-toggle nav-data" href="#" data-toggle="dropdown">{% trans %}Data{% endtrans %} <b class="caret"></b></a>
|
21
|
<ul class="dropdown-menu">
|
22
|
<li{% if current_page == '/' %} class='active'{% endif %}><a href="/{{current_lang}}">{% trans %}Home{% endtrans %}</a></li>
|
23
|
<li{% if current_page.startswith('/dataset') %} class='active'{% endif %}><a href="/{{current_lang}}/dataset">{% trans %}Datasets{% endtrans %}</a></li>
|
24
|
<li{% if current_page.startswith('/organization') %} class='active'{% endif %}><a href="/{{current_lang}}/organization">{% trans %}Organizations{% endtrans %}</a></li>
|
25
|
<li{% if current_page.startswith('/group') %} class='active'{% endif %}><a href="/{{current_lang}}/group">{% trans %}Groups{% endtrans %}</a></li>
|
26
|
<li class="divider"></li>
|
27
|
<li{% if current_page.startswith('/dashboard') %} class='active'{% endif %}><a href="/{{current_lang}}/dashboard">{% trans %}Dashboard{% endtrans %}</a></li>
|
28
|
</ul>
|
29
|
{% else %}
|
30
|
<li class="active deeper dropdown parent">
|
31
|
<a class="dropdown-toggle nav-data" href="/">{% trans %}Data{% endtrans %}</a>
|
32
|
{% endif %}
|
33
|
</li>
|
34
|
</ul>
|
35
|
<ul class="nav navbar-nav navbar-right navbar-lang">
|
36
|
<li class="dropdown">{% snippet "language_switcher.html" %}</li>
|
37
|
</ul>
|
38
|
|
39
|
<ul class="nav navbar-nav navbar-right">
|
40
|
<li class="item-123">
|
41
|
{% if c.userobj %}
|
42
|
<a class="btn navbar-btn" href="{{ h.url_for('/user/slo') }}">{% trans %}Log out{% endtrans %}</a>
|
43
|
{% else %}
|
44
|
<a class="btn navbar-btn" href="{{ g.ozwillo_portal_url }}/my?ui_locales={{current_lang}}">{% trans %}Log in{% endtrans %}</a>
|
45
|
{% endif %}
|
46
|
</li>
|
47
|
<li class="item-112 deeper dropdown parent"><a class="dropdown-toggle" href="/en/oz/discover" data-toggle="dropdown">{% trans %}Discover{% endtrans %} <b class="caret"></b></a>
|
48
|
<ul class="dropdown-menu">
|
49
|
<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['discovering'] }}">{% trans %}Discovering the Platform{% endtrans %}</a></li>
|
50
|
<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['news'] }}">{% trans %}News{% endtrans %}</a></li>
|
51
|
<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['co-construct'] }}">{% trans %}Co-construct{% endtrans %}</a></li>
|
52
|
<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['lets-go'] }}">{% trans %}Let's go{% endtrans %}</a></li>
|
53
|
<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['projects'] }}">{% trans %}Projects{% endtrans %}</a></li>
|
54
|
</ul>
|
55
|
</li>
|
56
|
</ul>
|
57
|
</div>
|
58
|
</div>
|
59
|
</nav>
|