use is_rtl variable to detect rtl locales
authorLeah Velleman <leah.velleman@gmail.com>
Tue, 21 Jun 2016 02:08:55 +0000 (22:08 -0400)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 21 Jun 2016 03:16:53 +0000 (22:16 -0500)
mediagoblin/templates/mediagoblin/utils/prev_next.html

index 1570cf5237214617a1ab5b98936d5d65c57acac4..fc8672fb708841be0f507685b01b2a64f67d6b4e 100644 (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 %}