Skip to content
This repository was archived by the owner on Jan 11, 2019. It is now read-only.

Commit 895ed35

Browse files
committed
Merge pull request #147 from aldryn/feature/4.0.4
Release 4.0.4
2 parents 4cf60af + 8a416b3 commit 895ed35

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

CHANGELOG.rst

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Aldryn Boilerplate Bootstrap 3
33
##############################
44

55

6+
4.0.4
7+
=====
8+
- fix language template selection to use ``lang.code``
9+
10+
611
4.0.3
712
=====
813
- separate devDependencies and dependencies for aldryn

boilerplate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"identifier": "bootstrap3",
33
"package-name": "aldryn-boilerplate-bootstrap3-libsass",
4-
"version": "4.0.3",
4+
"version": "4.0.4",
55
"templates": [
66
["fullwidth.html", "full width"],
77
["sidebar_left.html", "sidebar left"],

templates/includes/menu/langnav.html

+10-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{% load i18n menu_tags %}
2-
{% get_available_languages as languages %}
32
{% get_language_info for LANGUAGE_CODE as lang %}
4-
{# DOCS: https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#other-tags #}
53

64
{% if languages|length > 1 %}
7-
<li class="child lang dropdown">
8-
<a href="{% page_language_url lang.0 %}" class="dropdown-toggle" data-toggle="dropdown"><span>{{ lang.name }} <span class="caret"></span></span></a>
9-
<ul class="dropdown-menu" role="menu">
10-
{% for language in languages %}
11-
{% if not language.0 == current_language %}
12-
<li class="child lang"><a href="{% page_language_url language.0 %}"><span>{{ language.1 }}</span></a></li>
13-
{% endif %}
14-
{% endfor %}
15-
</ul>
16-
</li>
5+
<li class="child lang dropdown">
6+
<a href="{% page_language_url lang.code %}" class="dropdown-toggle" data-toggle="dropdown"><span>{{ lang.name }} <span class="caret"></span></span></a>
7+
<ul class="dropdown-menu" role="menu">
8+
{% for language in languages %}
9+
{% if not language.0 == current_language %}
10+
<li class="child lang"><a href="{% page_language_url language.0 %}"><span>{{ language.1 }}</span></a></li>
11+
{% endif %}
12+
{% endfor %}
13+
</ul>
14+
</li>
1715
{% endif %}

0 commit comments

Comments
 (0)