X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f9291ba5764fe104264ae7e3b6a361e11212e8b..5fdada204cf92d8ca99300927713724aaaf1b2bd:/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