Fix #1211 -- Locale selection on organizer profile

This commit is contained in:
Raphael Michel
2019-05-01 12:53:44 +02:00
parent e5c2470fde
commit 2b145e254b
2 changed files with 12 additions and 0 deletions

View File

@@ -18,6 +18,16 @@
<h1><a href="{% eventurl organizer "presale:organizer.index" %}">{{ organizer.name }}</a></h1>
{% endif %}
</div>
<div class="pull-right loginbox">
{% if organizer.settings.locales|length > 1 %}
<div class="locales">
{% for l in languages %}
<a href="{% url "presale:locale.set" %}?locale={{ l.code }}&next={{ request.path }}%3F{{ request.META.QUERY_STRING|urlencode }}" class="{% if l.code == request.LANGUAGE_CODE %}active{% endif %}" rel="nofollow">
{{ l.name_local }}</a>
{% endfor %}
</div>
{% endif %}
</div>
<div class="clearfix"></div>
</div>
{% if messages %}