X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dcfe326f6515cc7aeb9c02b7536e69863c60cd01..f9109b7a75f91c208a7b5f68cc64ba253a9041c5:/app/helpers/notifier_helper.rb diff --git a/app/helpers/notifier_helper.rb b/app/helpers/notifier_helper.rb index 1c2e5e654..cc99898aa 100644 --- a/app/helpers/notifier_helper.rb +++ b/app/helpers/notifier_helper.rb @@ -32,4 +32,12 @@ module NotifierHelper # we apply it once here, after the message has been composed. html.gsub(/

/, '

') end + + def style_left + I18n.t("html.dir") == "ltr" ? "left" : "right" + end + + def style_right + I18n.t("html.dir") == "ltr" ? "right" : "left" + end end