Skip to content
Snippets Groups Projects
Commit 9fe940b8 authored by Hanne Moa's avatar Hanne Moa
Browse files

Adapt to new format for languagebar array

parent 39f52047
No related branches found
No related tags found
No related merge requests found
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
{% if not hideLanguageBar %} {% if not hideLanguageBar %}
<div id="languagebar"> <div id="languagebar">
{% for language, param in languageBar %} {% for lang in languageBar %}
{%- if not loop.first -%} | {%- endif -%}{% if param %}<a href="{{ param }}">{{ language }}</a>{% else %}{{ language }}{% endif %} {%- if not loop.first -%} | {%- endif -%}{% if lang.url %}<a href="{{ lang.url }}">{{ lang.name }}</a>{% else %}{{ lang.name }}{% endif %}
{% endfor %} {% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment