Project

General

Profile

Download (5.73 KB) Statistics
| Branch: | Tag: | Revision:

theme / ckanext / ozwillo_theme / templates / header.html @ c67189db

1
{% set current_lang = request.environ.CKAN_LANG %}
2
{% set current_page = request.environ.CKAN_CURRENT_URL %}
3
<div id="toggle-container">
4
  <button id="toggle-toc" class="btn btn-primary visible-xs-inline-block" type="button">
5
    <i class="fa fa-bars"></i>
6
  </button>
7
</div>
8
<nav id="off-nav">
9
  <ul class="nav">
10
    <li>
11
      <a class="logo" href="{{ g.ozwillo_url }}/{{current_lang}}"><img src="/img/logo-h43.png" alt="{% trans %}Home{% endtrans %}"></a>
12
    </li>
13
    <li class="divider first"></li>
14
    <li>
15
      <a class="nav-apps" href="{{ g.ozwillo_portal_url }}/{{current_lang}}/store?ui_locales={{current_lang}}">{% trans %}Catalog{% endtrans %}</a>
16
    </li>
17
    {% if c.userobj %}
18
    <li class="deeper dropdown parent">
19
      <a class="nav-data" href="#">{% trans %}Data{% endtrans %}</a>
20
      <ul class="nav">
21
        <li{% if current_page.startswith('/dataset') %} class='active'{% endif %}><a href="/{{current_lang}}/dataset">{% trans %}Datasets{% endtrans %}</a></li>
22
        <li{% if current_page.startswith('/organization') %} class='active'{% endif %}><a href="/{{current_lang}}/organization">{% trans %}Organizations{% endtrans %}</a></li>
23
        <li{% if current_page.startswith('/group') %} class='active'{% endif %}><a href="/{{current_lang}}/group">{% trans %}Groups{% endtrans %}</a></li>
24
        <li{% if current_page.startswith('/dashboard') %} class='active'{% endif %}><a href="/{{current_lang}}/dashboard">{% trans %}Dashboard{% endtrans %}</a></li>
25
      </ul>
26
    {% else %}
27
    <li class="active deeper dropdown parent">
28
      <a class="dropdown-toggle nav-data" href="/">{% trans %}Data{% endtrans %}</a>
29
    {% endif %}
30
    </li>
31
    <li class="divider"></li>
32
    <li>
33
      <a class="dropdown-toggle" href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['discovering'] }}"><i class="fa fa-eye"></i> {% trans %}Discover{% endtrans %}</a>
34
    </li>
35
    <li>
36
      <a class="dropdown-toggle" href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['news'] }}"><i class="fa fa-calendar"></i> {% trans %}News{% endtrans %}</a>
37
    </li>
38
    <li>
39
      {% if c.userobj %}
40
      <a href="{{ h.url_for('/user/slo') }}"><i class="fa fa-sign-out"></i> {% trans %}Log out{% endtrans %}</a>
41
      {% else %}
42
      <a href="{{ g.ozwillo_portal_url }}/my?ui_locales={{current_lang}}"><i class="fa fa-sign-in"></i> {% trans %}Log in{% endtrans %}</a>
43
      {% endif %}
44
    </li>
45
    <li class="divider"></li>
46
  </ul>
47
</nav>
48
<nav id="t3-mainnav" class="wrap navbar navbar-default navbar-fixed-top t3-mainnav">
49
	<div class="container">
50
		<div class="t3-navbar">
51
			<ul class="nav navbar-nav">
52
  			<li class="item-107 current">
53
          <a class="logo" href="{{ g.ozwillo_url }}/{{current_lang}}"><img src="/img/logo-h43.png" alt="{% trans %}Home{% endtrans %}"></a>
54
				</li>
55
        <li class="item-108">
56
          <a class="nav-apps" href="{{ g.ozwillo_portal_url }}/{{current_lang}}/store?ui_locales={{current_lang}}">{% trans %}Catalog{% endtrans %}</a>
57
				</li>
58
        {% if c.userobj %}
59
        <li class="item-119 deeper dropdown parent">
60
          <a class="dropdown-toggle nav-data" href="#" data-toggle="dropdown">{% trans %}Data{% endtrans %} <b class="caret"></b></a>
61
          <ul class="dropdown-menu">
62
            <li{% if current_page == '/' %} class='active'{% endif %}><a href="/{{current_lang}}">{% trans %}Home{% endtrans %}</a></li>
63
            <li{% if current_page.startswith('/dataset') %} class='active'{% endif %}><a href="/{{current_lang}}/dataset">{% trans %}Datasets{% endtrans %}</a></li>
64
            <li{% if current_page.startswith('/organization') %} class='active'{% endif %}><a href="/{{current_lang}}/organization">{% trans %}Organizations{% endtrans %}</a></li>
65
            <li{% if current_page.startswith('/group') %} class='active'{% endif %}><a href="/{{current_lang}}/group">{% trans %}Groups{% endtrans %}</a></li>
66
            <li class="divider"></li>
67
            <li{% if current_page.startswith('/dashboard') %} class='active'{% endif %}><a href="/{{current_lang}}/dashboard">{% trans %}Dashboard{% endtrans %}</a></li>
68
          </ul>
69
        {% else %}
70
        <li class="active deeper dropdown parent">
71
          <a class="dropdown-toggle nav-data" href="/">{% trans %}Data{% endtrans %}</a>
72
        {% endif %}
73
        </li>
74
      </ul>
75
      <ul class="nav navbar-nav navbar-right navbar-lang">
76
        <li class="dropdown">{% snippet "language_switcher.html" %}</li>
77
      </ul>
78

    
79
      <ul class="nav navbar-nav navbar-right">
80
        <li class="item-123">
81
        {% if c.userobj %}
82
        <a class="btn navbar-btn" href="{{ h.url_for('/user/slo') }}">{% trans %}Log out{% endtrans %}</a>
83
        {% else %}
84
        <a class="btn navbar-btn" href="{{ g.ozwillo_portal_url }}/my?ui_locales={{current_lang}}">{% trans %}Log in{% endtrans %}</a>
85
        {% endif %}
86
        </li>
87
        <li class="item-112 deeper dropdown parent hidden-menu-table"><a class="dropdown-toggle" href="#" data-toggle="dropdown">{% trans %}Discover{% endtrans %} <b class="caret"></b></a>
88
          <ul class="dropdown-menu">
89
            <li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['discovering'] }}">{% trans %}Discovering the Platform{% endtrans %}</a></li>
90
            <li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['news'] }}">{% trans %}News{% endtrans %}</a></li>
91
            <li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['co-construct'] }}">{% trans %}Co-construct{% endtrans %}</a></li>
92
            <li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['lets-go'] }}">{% trans %}Let's go{% endtrans %}</a></li>
93
            <li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['projects'] }}">{% trans %}Projects{% endtrans %}</a></li>
94
          </ul>
95
        </li>
96
      </ul>
97
		</div>
98
	</div>
99
</nav>
(3-3/5)