Commit graph

19 commits

Author SHA1 Message Date
Nenad Vujicic
091bf88a5f Added greeting to friendship notification
Added greeting 'Hi {user display name},' to friendship notification email. As a side effect, user_mailer.friendship_notification.hi is not anymore reported as unused.
2024-09-17 23:20:41 +02:00
mmd-osm
2d3988e38f GPX Import email in text format
Fixes #5025
2024-07-31 19:13:08 +02:00
Tom Hughes
f0764d3eca Add unsubscribe link to changeset notification mails 2024-02-25 09:48:11 +00:00
Anton Khorev
a07df4c67b Add unsubscribe link to diary comment notification email 2024-02-17 06:16:42 +03:00
Anton Khorev
aceb415edf Emphasize trace tags in import emails 2024-01-11 18:10:40 +03:00
Anton Khorev
6931c49825 Link to all user's traces from successful import emails 2024-01-11 17:48:40 +03:00
Anton Khorev
51f331e8cc Don't link to trace pages from failed import emails 2024-01-11 17:11:55 +03:00
Anton Khorev
02aa14ffea Link to trace pages from successful import emails 2024-01-11 17:11:41 +03:00
Tom Hughes
473d7cd179 Use correct extension and type for avatar images attached to mails
Fixes #4147
2023-08-09 11:41:55 +01:00
Tom Hughes
b5cc4449a6 Include count in messages for the "one" plural category 2023-03-15 21:01:32 +00:00
Tom Hughes
cbcc7dc49f Fix some rubocop Naming/PredicateName warnings 2022-03-03 22:47:55 +00:00
Andy Allan
6181919b61 Fix erblint errors from the Rails/ContentTag cop 2021-11-10 12:23:48 +00:00
Andy Allan
651217e1bc Add missing html suffix to translation key
The new key was added to the translations config file in a previous commit.
2020-12-08 13:50:22 +00:00
Andy Allan
78dd142df4 Avoid using raw in html mailer views
Use the _html suffix to mark that we expect the translations to contain links.

Unfortunately, we can't use the _html keys for the plain text emails, since the input options (e.g. username, url) will be html-escaped,
before it is passed to the view. So we need to use non-html-suffix keys for the plaintext views, in most cases. Only when the translation
options (e.g. url) are guaranteed to not contain any escapable characters can the same translation key be shared.
2020-12-02 15:13:09 +00:00
Andy Allan
cc1d9592df Avoid calling raw in plain text email templates
Rails doesn't escape text in text/plain outputs, since before Rails 4.

See https://github.com/rails/rails/pull/8235
2020-11-25 18:28:35 +00:00
Andy Allan
342e25dd5a Remove duplicate translation strings, and use short form translation lookups 2020-11-25 18:28:35 +00:00
Andy Allan
b83c0acbd1 Fix trace tag interpolation, and add a test 2020-11-25 11:34:35 +00:00
Andy Allan
f635b98b8c Refactor trace notifications to reduce lego translations
Fixes #2268.

Unfortunately there's still a lego translation when both halves of the sentence are joined together, but this at least reduces the number of combinations to translate.
2020-11-18 18:14:55 +00:00
Andy Allan
2c1033f62d Rename Notifier to UserMailer
It's a convention in rails to name your mailers with a Mailer suffix, and is also common to name the class after the recipient (e.g. User, Admin). So UserMailer seems a reasonable choice.
2020-10-14 15:04:58 +02:00