about summary refs log tree commit diff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-24 18:03:53 +0200
committerGitHub <noreply@github.com>2017-04-24 18:03:53 +0200
commite59f5c8e13f640166e6fe056500d36edd6cb6df6 (patch)
treea6e464d1bcdac473e0210d4d0d85d349038533e8 /app/helpers/application_helper.rb
parentb073b092c96669db83e4fbcd945a05d3d1767534 (diff)
Add an RTL stylesheet for Arabic i18n (#2378)
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index fad4ab068..e2ea94856 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -8,4 +8,9 @@ module ApplicationHelper
   def show_landing_strip?
     !user_signed_in? && !single_user_mode?
   end
+
+  def add_rtl_body_class(other_classes)
+    other_classes = "#{other_classes} rtl" if [:ar].include?(I18n.locale)
+    other_classes
+  end
 end