forked from CGM_Public/pretix_original
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:
@@ -8,7 +8,7 @@
|
||||
{% endblock %}
|
||||
{% block page %}
|
||||
<div class="page-header">
|
||||
<div class="pull-left">
|
||||
<div class="pull-left flip">
|
||||
{% if organizer_logo %}
|
||||
<a href="{% eventurl organizer "presale:organizer.index" %}" title="{{ organizer.name }}">
|
||||
<img src="{{ organizer_logo|thumb:'5000x120' }}" alt="{{ organizer.name }}"
|
||||
@@ -18,7 +18,7 @@
|
||||
<h1><a href="{% eventurl organizer "presale:organizer.index" %}">{{ organizer.name }}</a></h1>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="pull-right loginbox">
|
||||
<div class="pull-right flip loginbox">
|
||||
{% if organizer.settings.locales|length > 1 %}
|
||||
<div class="locales">
|
||||
{% for l in languages %}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-xs-12">
|
||||
<div class="col-sm-4 col-xs-12 text-left flip">
|
||||
<div class="btn-group" role="group">
|
||||
<a href="?{% url_replace request "style" "list" %}" type="button" class="btn btn-default">
|
||||
<span class="fa fa-list"></span>
|
||||
@@ -52,7 +52,7 @@
|
||||
{% trans "Go" %}
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-sm-4 hidden-xs text-right">
|
||||
<div class="col-sm-4 hidden-xs text-right flip">
|
||||
<a href="?{% url_replace request "year" before.year "month" before.month %}" class="btn btn-default">
|
||||
<span class="fa fa-arrow-left"></span>
|
||||
{{ before|date:"F Y" }}
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
<span class="label label-warning">{% trans "Not yet on sale" %}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<td class="text-right flip">
|
||||
<a class="btn btn-primary" href="{{ url }}">
|
||||
{% if e.has_subevents %}{% trans "Buy tickets" %}
|
||||
{% elif e.presale_is_running and e.best_availability_state == 100 %}{% trans "Buy tickets" %}
|
||||
|
||||
Reference in New Issue
Block a user