Project

General

Profile

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

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

1 61b34555 Frédéric Péters
{% 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
<li><a href="{% url_for current_url, locale=locale %}">{{ locale.display_name or locale.english_name }}</a></li>
15
{% endfor %}
16
</li>
17
</ul>
18
<!-- //LANGUAGE SWITCHER -->