Skip to content
Snippets Groups Projects
Commit 200a0667 authored by Olimpia Magliulo's avatar Olimpia Magliulo
Browse files

Fix forloop in header language side-menu.

parent af46abbb
No related branches found
No related tags found
No related merge requests found
......@@ -19,19 +19,19 @@
<div id="languagebar">
<div id="menu">
<div class="pure-menu">
{% for key, lang in languageBar -%}
{% if key == currentLanguage -%}
<a class="pure-menu-heading" href="#">{{ lang.name }}</a>
{% else -%}
<ul class="pure-menu-list">
{% for key, lang in languageBar -%}
{% if key == currentLanguage -%}
<a class="pure-menu-heading" href="#">{{ lang.name }}</a>
{% else -%}
{% if lang.url -%}
<li class="pure-menu-item"><a href="{{ lang.url }}{%- spaceless %}
{% if queryParams %}&{% endif %}
{% for name, value in queryParams %}
{%- if not loop.first %}&{% endif -%}
{% if value %}{{ name }}={{ value }}{% else %}{{ name }}{% endif %}
{% endfor %}"{% endspaceless -%} class="pure-menu-link">{{ lang.name }}</a></li>
{% endif %}
{% endfor %}"{% endspaceless %} class="pure-menu-link">{{ lang.name }}</a></li>
{% endif -%}
{% endif -%}
{% endfor -%}
</ul>
......
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