Fix styling of email notifications in RTL languages

Fixes #2297
This commit is contained in:
Tom Hughes 2019-07-03 09:49:46 +01:00
parent ee8ed3c682
commit f9109b7a75
3 changed files with 14 additions and 6 deletions

View file

@ -32,4 +32,12 @@ module NotifierHelper
# we apply it once here, after the message has been composed.
html.gsub(/<p>/, '<p style="color: black; margin: 0.75em 0; font-family: \'Helvetica Neue\', Arial, Sans-Serif">')
end
def style_left
I18n.t("html.dir") == "ltr" ? "left" : "right"
end
def style_right
I18n.t("html.dir") == "ltr" ? "right" : "left"
end
end