Project

General

Profile

« Previous | Next » 

Revision a5d8476a

Added by Serghei Mihai (absent jusqu’au 16/8) over 7 years ago

navbar links localized

Closes #6789

View differences:

ckanext/ozwillo_theme/plugin.py
42 42
        set_global('ckan.ozwillo_portal_url',
43 43
                   pconfig.get('%s.ozwillo_portal_url' % __name__))
44 44

  
45
        set_global('ckan.footer_links', footer_links())
45
        set_global('ckan.localized_links', footer_links())
46 46

  
47 47
        toolkit.add_template_directory(config_, 'templates')
48 48
        toolkit.add_public_directory(config_, 'public')
ckanext/ozwillo_theme/templates/footer.html
17 17
				</div>
18 18
				<div class=" col-lg-2 col-md-2 col-sm-3 col-xs-4">
19 19
					<ul class="nav navbar-nav navbar-footer">
20
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['news'] }}">{% trans %}News{% endtrans %}</a></li>
21
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['discovering'] }}">{% trans %}Discovering{% endtrans %}</a></li>
22
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['co-construct'] }}">{% trans %}Co-construct{% endtrans %}</a></li>
23
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['lets-go'] }}">{% trans %}Let's go{% endtrans %}</a></li></ul>
20
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['news'] }}">{% trans %}News{% endtrans %}</a></li>
21
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['discovering'] }}">{% trans %}Discovering{% endtrans %}</a></li>
22
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['co-construct'] }}">{% trans %}Co-construct{% endtrans %}</a></li>
23
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['lets-go'] }}">{% trans %}Let's go{% endtrans %}</a></li></ul>
24 24
				</div>
25 25
				<div class=" col-lg-2 col-md-2 col-sm-3 col-xs-4">
26 26
					<ul class="nav navbar-nav navbar-footer">
27
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['contact'] }}">{% trans %}Contact{% endtrans %}</a></li>
28
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['project-team'] }}">{% trans %}Project team{% endtrans %}</a></li>
29
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['projects'] }}">{% trans %}Projects{% endtrans %}</a></li>
27
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['contact'] }}">{% trans %}Contact{% endtrans %}</a></li>
28
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['project-team'] }}">{% trans %}Project team{% endtrans %}</a></li>
29
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['projects'] }}">{% trans %}Projects{% endtrans %}</a></li>
30 30
						<li><a class="ext-twitter" href="https://twitter.com/ozwillo">@Ozwillo</a></li>
31 31
					</ul>
32 32
				</div>
33 33
				<div class=" col-lg-2 col-md-2 col-sm-3 col-xs-4">
34 34
					<ul class="nav navbar-nav navbar-footer">
35
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['user-guide'] }}">{% trans %}User guide{% endtrans %}</a></li>
35
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['user-guide'] }}">{% trans %}User guide{% endtrans %}</a></li>
36 36
						<li><a href="http://doc.ozwillo.com/">{% trans %}Developers{% endtrans %}</a></li>
37
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['legal-notices'] }}">{% trans %}Legal Notices{% endtrans %}</a></li>
38
						<li><a href="{{ g.ozwillo_url }}{{ g.footer_links[current_lang]['general-terms-of-use'] }}">{% trans %}General terms of use{% endtrans %}</a></li>
37
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['legal-notices'] }}">{% trans %}Legal Notices{% endtrans %}</a></li>
38
						<li><a href="{{ g.ozwillo_url }}{{ g.localized_links[current_lang]['general-terms-of-use'] }}">{% trans %}General terms of use{% endtrans %}</a></li>
39 39
					</ul>
40 40
				</div>
41 41
			</div>
ckanext/ozwillo_theme/templates/header.html
46 46
        </li>
47 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 48
          <ul class="dropdown-menu">
49
            <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/discover">{% trans %}Discovering the Platform{% endtrans %}</a></li>
50
            <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/news">{% trans %}News{% endtrans %}</a></li>
51
            <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/co-construct">{% trans %}Co-construct{% endtrans %}</a></li>
52
            <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/let-s-go">{% trans %}Let's go{% endtrans %}</a></li>
53
            <li><a href="{{ g.ozwillo_url }}/{{current_lang}}/oz/projects">{% trans %}Projects{% endtrans %}</a></li>
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 54
          </ul>
55 55
        </li>
56 56
      </ul>
57 57
		</div>
58 58
	</div>
59
</nav>
59
</nav>

Also available in: Unified diff