Ticket #828: 0002-use-is_rtl-variable-to-detect-rtl-locales.patch

File 0002-use-is_rtl-variable-to-detect-rtl-locales.patch, 1.0 KB (added by Leah Velleman, 8 years ago)
  • mediagoblin/templates/mediagoblin/utils/prev_next.html

    From d1e8431de87694c0bbed551b00c653cee34bda0c Mon Sep 17 00:00:00 2001
    From: Leah Velleman <leah.velleman@gmail.com>
    Date: Mon, 20 Jun 2016 22:08:55 -0400
    Subject: [PATCH 2/2] 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 1570cf5..44afb1a 100644
    a b  
    1919{# Provide navigation links to neighboring media entries, if possible #}
    2020{% set prev_entry_url = media.url_to_prev(request.urlgen) %}
    2121{% set next_entry_url = media.url_to_next(request.urlgen) %}
    22 {% if request.locale.startswith("fa") or request.locale.startswith("ar") %}
     22{% if is_rtl %}
    2323  {% set next_arrow = "→" %}
    2424  {% set prev_arrow = "←" %}
    2525{% else %}