use is_rtl variable to detect rtl locales

This commit is contained in:
Leah Velleman 2016-06-20 22:08:55 -04:00 committed by Christopher Allan Webber
parent 1b009a815a
commit ee828f42c5

View File

@ -19,7 +19,7 @@
{# Provide navigation links to neighboring media entries, if possible #}
{% set prev_entry_url = media.url_to_prev(request.urlgen) %}
{% set next_entry_url = media.url_to_next(request.urlgen) %}
{% if request.locale.startswith("fa") or request.locale.startswith("ar") %}
{% if is_rtl %}
{% set next_arrow = "→" %}
{% set prev_arrow = "←" %}
{% else %}