diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-24 18:03:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 18:03:53 +0200 |
commit | e59f5c8e13f640166e6fe056500d36edd6cb6df6 (patch) | |
tree | a6e464d1bcdac473e0210d4d0d85d349038533e8 /app/helpers | |
parent | b073b092c96669db83e4fbcd945a05d3d1767534 (diff) |
Add an RTL stylesheet for Arabic i18n (#2378)
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
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 |