Commit 9729c32d authored by c24b's avatar c24b

User authenticated => lang_user

parent 0b674a83
......@@ -104,6 +104,8 @@
{% endif %}
</ul>
</li>
{% if user.is_authenticated %}
<li class="dropdown">
<a tabindex="-1" id="lang" href="#" role="button" data-lang="{{user_parameters.language}}" role="button" class="dropdown-toggle navbar-text" data-toggle="dropdown" title="This is your chosen language">
{% if user_parameters.language == "fr" %}
......@@ -130,12 +132,26 @@
<img value="fr" src= "{% static "img/fr.png"%}" width="25%"/>
fr
</a>
<ul class="dropdown-menu">
<li class="dropdown">
<!-- <a href="/{{user.username}}/parameters/" > -->
{% if user_parameters.language == "fr" %}
<button id="new_lang" data-lang="en">
<img value="en" src= "{% static "img/en.png"%}" width="25%"/>
en
{%else%}
<img value="fr" src= "{% static "img/fr.png"%}" width="25%"/>
fr
<!-- </a> -->
{%endif%}
</button>
</li>
<li></li>
</ul>
</li>
{% endif %}
</ul>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment