X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dcfe326f6515cc7aeb9c02b7536e69863c60cd01..d021bdf5cf57f6020279043ac276f96f5bf6352c:/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