Project

General

Profile

Download (667 Bytes) Statistics
| Branch: | Tag: | Revision:

theme / ckanext / ozwillo_theme / templates / language_switcher.html @ c2f8935e

1
{% set current_lang = request.environ.CKAN_LANG %}
2
{% set current_url = request.environ.CKAN_CURRENT_URL %}
3
<!-- LANGUAGE SWITCHER -->
4

    
5
<a class="dropdown-toggle" href="/" data-toggle="dropdown">
6
{% for locale in h.get_available_locales() %}
7
{% if locale == current_lang %}{{ locale.display_name or locale.english_name }}{% endif %}
8
{% endfor %}
9
<b class="caret"></b>
10
</a>
11

    
12
<ul class="dropdown-menu ">
13
  {% for locale in h.get_available_locales() %}
14
  {% if locale != current_lang %}
15
  <li><a href="{% url_for current_url, locale=locale %}">{{ locale.display_name or locale.english_name }}</a></li>
16
  {% endif %}
17
{% endfor %}
18
</li>
19
</ul>
20
<!-- //LANGUAGE SWITCHER -->
(4-4/5)