Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed language display in langswitcher template
After an update of the LangSwitcher, the languages list was not displayed correctly.
  • Loading branch information
Sebastien VIALLEMONTEIL committed Jun 10, 2016
1 parent 3eced25 commit 3846d87
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
# v1.1.5
## 06/10/2016

1. [](#bugfix)
* Fixed language display in langswitcher template

# v1.1.4
## 06/10/2016

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
@@ -1,5 +1,5 @@
name: Nucleare
version: 1.1.4
version: 1.1.5
description: "Theme for the Grav CMS, based on the WordPress theme named Nucleare. It's mainly aimed to be used for a Blog, but you can also create simple pages. Modular pages to come"
icon: empire
author:
Expand Down
4 changes: 2 additions & 2 deletions templates/partials/langswitcher.html.twig
Expand Up @@ -5,7 +5,7 @@
<li>
<a>{{ langswitcher.current }}</a>
<ul class="sub-menu">
{% for key, language in langswitcher.languages %}
{% for key in langswitcher.languages %}

{% if key == langswitcher.current %}
{% set lang_url = page.url %}
Expand All @@ -15,7 +15,7 @@
{% set active_class = '' %}
{% endif %}

<li class="{{ active_class }}"><a href="{{ lang_url }}">{{ language.nativeName|capitalize }}</a></li>
<li class="{{ active_class }}"><a href="{{ lang_url ~ uri.params }}">{{ native_name(key)|capitalize }}</a></li>

{% endfor %}
</ul>
Expand Down

0 comments on commit 3846d87

Please sign in to comment.