X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/65d57a5bfaae7e663d0a3e8d28186fb58ca452a7..93da9596997444baa576e296e371065a3cb99eb3:/app/helpers/notifier_helper.rb diff --git a/app/helpers/notifier_helper.rb b/app/helpers/notifier_helper.rb index a696a3d9c..cc99898aa 100644 --- a/app/helpers/notifier_helper.rb +++ b/app/helpers/notifier_helper.rb @@ -12,7 +12,7 @@ module NotifierHelper # the but Outlook only on the :style => "text-decoration: none" ), - user_url(display_name, :host => SERVER_URL), + user_url(display_name, :host => Settings.server_url), :target => "_blank", :rel => "noopener", :style => "text-decoration: none; color: #222" @@ -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