Actually link flags via static tag

This commit is contained in:
Raphael Michel
2016-09-14 12:43:51 +02:00
parent f128a5f559
commit a43b41c8d6
@@ -38,7 +38,7 @@
{% for l in request.event.settings.locales %} {% for l in request.event.settings.locales %}
<a href="{% url "presale:locale.set" %}?locale={{ l }}&next={{ request.path }}%3F{{ request.META.QUERY_STRING|urlencode }}" <a href="{% url "presale:locale.set" %}?locale={{ l }}&next={{ request.path }}%3F{{ request.META.QUERY_STRING|urlencode }}"
class="{% if l == request.LANGUAGE_CODE %}active{% endif %}" class="{% if l == request.LANGUAGE_CODE %}active{% endif %}"
><img src="{% static "pretixbase/img/flags" %}/{{ l }}.png"/></a> ><img src="{% static "pretixbase/img/flags/"|add:l|add:".png" %}"/></a>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}