Support for right-to-left languages (#1438)

* play around

* Flip things in presale

* Convert backend

* Remove test settings

* Safe getattr
This commit is contained in:
Raphael Michel
2019-10-15 11:41:23 +02:00
committed by GitHub
parent 4152ee4e50
commit a4d8c810ce
79 changed files with 2006 additions and 140 deletions

View File

@@ -6,7 +6,7 @@
{% load eventsignal %}
{% load eventurl %}
<!DOCTYPE html>
<html>
<html{% if rtl %} dir="rtl" class="rtl"{% endif %}>
<head>
<title>{% block title %}{% endblock %}{% if url_name != "index" %} :: {% endif %}
{{ settings.PRETIX_INSTANCE_NAME }}</title>
@@ -123,7 +123,7 @@
{{ settings.PRETIX_INSTANCE_NAME }}
</a>
</div>
<ul class="nav navbar-nav navbar-top-links navbar-left hidden-xs">
<ul class="nav navbar-nav navbar-top-links navbar-left flip hidden-xs">
{% if request.event %}
<li>
{% if has_domain and not request.event.live %}
@@ -147,7 +147,7 @@
</li>
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-top-links navbar-right">
<ul class="nav navbar-nav navbar-top-links navbar-right flip">
{% for nav in nav_topbar %}
<li {% if nav.children %}class="dropdown"{% endif %}>
<a href="{{ nav.url }}" title="{{ nav.title }}" {% if nav.active %}class="active"{% endif %}