Project

General

Profile

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

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

1 61b34555 Frédéric Péters
{% set current_lang = request.environ.CKAN_LANG %}
2 13138928 Serghei MIHAI
{% set current_page = request.environ.CKAN_CURRENT_URL %}
3 61b34555 Frédéric Péters
<nav id="t3-mainnav" class="wrap navbar navbar-default navbar-fixed-top t3-mainnav">
4
	<div class="container">
5
6
		<!-- Brand and toggle get grouped for better mobile display -->
7
		<div class="navbar-header">
8
		
9
			
10
							
11
<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">
12
  <i class="fa fa-bars"></i>
13
</button>
14
15
<!-- OFF-CANVAS SIDEBAR -->
16
17
<!-- //OFF-CANVAS SIDEBAR -->
18
			
19
		</div>
20
21
		
22
		<div class="t3-navbar navbar-collapse collapse">
23
					<ul class="nav navbar-nav">
24 05e29ae5 Guillaume Denis
			<li class="item-107 current">				<a class="logo" href="{{ g.ozwillo_url }}/{{current_lang}}"><img src="/img/logo-h43.png" alt="{% trans %}Home{% endtrans %}"></a>
25 cb0e91e4 Serghei MIHAI
				</li><li class="item-108">				<a class="nav-apps" href="{{ g.ozwillo_portal_url }}/{{current_lang}}/store?ui_locales={{current_lang}}">{% trans %}Catalog{% endtrans %}</a>
26 61b34555 Frédéric Péters
				</li>
27
<li class="item-119 deeper dropdown parent">
28 75fd2c02 Serghei MIHAI
{% if c.userobj %}
29 61b34555 Frédéric Péters
  <a class="dropdown-toggle nav-data" href="#" data-toggle="dropdown">{% trans %}Data{% endtrans %}<b class="caret"></b></a>
30
  <ul class="dropdown-menu">
31 13138928 Serghei MIHAI
    <li{% if current_page == '/' %} class='active'{% endif %}><a href="/{{current_lang}}">{% trans %}Home{% endtrans %}</a></li>
32
    <li{% if current_page.startswith('/dataset') %} class='active'{% endif %}><a href="/{{current_lang}}/dataset">{% trans %}Datasets{% endtrans %}</a></li>
33
    <li{% if current_page.startswith('/organization') %} class='active'{% endif %}><a href="/{{current_lang}}/organization">{% trans %}Organizations{% endtrans %}</a></li>
34
    <li{% if current_page.startswith('/group') %} class='active'{% endif %}><a href="/{{current_lang}}/group">{% trans %}Groups{% endtrans %}</a></li>
35 75fd2c02 Serghei MIHAI
    <li class="divider"></li>
36 13138928 Serghei MIHAI
    <li{% if current_page.startswith('/dashboard') %} class='active'{% endif %}><a href="/{{current_lang}}/dashboard">{% trans %}Dashboard{% endtrans %}</a></li>
37 61b34555 Frédéric Péters
  </ul>
38 75fd2c02 Serghei MIHAI
  {% else %}
39
    <a class="dropdown-toggle nav-data" href="/">{% trans %}Data{% endtrans %}</a>
40
{% endif %}
41 61b34555 Frédéric Péters
</li>
42
</ul>
43
44
<ul class="nav navbar-nav navbar-right navbar-lang">
45
  <li class="dropdown">{% snippet "language_switcher.html" %}</li>
46
</ul>
47
</li>
48
</ul>
49
          
50 c90847b4 Serghei MIHAI
<!-- RIGHT NAV -->
51
<ul class="nav navbar-nav navbar-right">
52
  <li class="item-123">
53
  {% if c.userobj %}
54 fee85993 Serghei MIHAI
  <a class="btn navbar-btn" href="{{ h.url_for('/user/slo') }}">{% trans %}Log out{% endtrans %}</a>
55 c90847b4 Serghei MIHAI
  {% else %}
56 f40b2b0e Serghei MIHAI
  <a class="btn navbar-btn" href="{{ g.ozwillo_portal_url }}/my?ui_locales={{current_lang}}">{% trans %}Log in{% endtrans %}</a>
57 c90847b4 Serghei MIHAI
  {% endif %}
58
  </li>
59 44bd48eb Guillaume Denis
<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>
60 61b34555 Frédéric Péters
  <ul class="dropdown-menu">
61 14fbb44a Serghei MIHAI
    <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/discover">{% trans %}Discovering the Platform{% endtrans %}</a></li>
62
    <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/news">{% trans %}News{% endtrans %}</a></li>
63
    <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/co-construct">{% trans %}Co-construct{% endtrans %}</a></li>
64
    <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/let-s-go">{% trans %}Let's go{% endtrans %}</a></li>
65
    <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/projects">{% trans %}Projects{% endtrans %}</a></li>
66 61b34555 Frédéric Péters
</ul></li></ul>
67
68
      	    <!-- //RIGHT NAV -->
69
                    
70
		</div>
71
72
	</div>
73
</nav>