From ee828f42c518fd6d0b1fb5d66c3c5fb3d44d885e Mon Sep 17 00:00:00 2001 From: Leah Velleman Date: Mon, 20 Jun 2016 22:08:55 -0400 Subject: [PATCH] use is_rtl variable to detect rtl locales --- mediagoblin/templates/mediagoblin/utils/prev_next.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/templates/mediagoblin/utils/prev_next.html b/mediagoblin/templates/mediagoblin/utils/prev_next.html index 1570cf52..fc8672fb 100644 --- a/mediagoblin/templates/mediagoblin/utils/prev_next.html +++ b/mediagoblin/templates/mediagoblin/utils/prev_next.html @@ -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 %} -- 2.25.1