Commit graph

22 commits

Author SHA1 Message Date
Tom Hughes
e2af9941a8 Fix downloading of image variants 2021-05-19 18:44:41 +01:00
Tom Hughes
cd5d54ce4e Use image_processing macros to resize images 2021-05-12 18:49:21 +01:00
Andy Allan
094d6c8bb9 Move confirmation methods into ConfirmationsController 2021-04-07 16:05:32 +01:00
Andy Allan
7a66c6d4eb Split password reset functionality into PasswordsController 2021-04-07 16:05:28 +01:00
Andy Allan
8f157ab2b1 Rename subject translation key, for consistency 2020-11-25 18:28:35 +00:00
Andy Allan
030591e318 Use rails t helper to allow relative translation keys in email subjects
This makes it easier to rename methods and translation keys.
2020-11-25 18:28: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
Tom Hughes
75e135869e Fix Style/ExplicitBlockArgument warnings 2020-08-09 19:06:04 +01:00
Andy Allan
3786366fdc Rename friend to friendship in notifier
Followup to #2269
2020-06-03 18:29:08 +02:00
Andy Allan
8ebfdbc1ff Move make_friend and remove_friend to friendships controller 2020-06-03 18:23:07 +02:00
Tom Hughes
0f9e28711c Don't try and resize images that aren't resizable 2020-05-13 11:30:26 +01:00
Tom Hughes
5432cb6db5 Attach resized images to notification emails
Fixes #2625
2020-05-13 11:29:02 +01:00
Tom Hughes
6c22bf4b9a Set X-Entity-Ref-ID header on notification emails
This disables threading in gmail completely - without it all
notifications of a given type are grouped together.
2020-01-02 21:45:41 +00:00
mmd-osm
480eaa1b36 Added helper function set_references for mail header 2019-12-30 23:04:15 +01:00
mmd
ffe636e6bd Add In-Reply-To, References headers to email
Closes https://github.com/openstreetmap/openstreetmap-website/issues/2430
2019-12-12 18:25:29 +01:00
Tom Hughes
57f5b7840e Fix rubocop warnings 2019-12-04 19:31:53 +00:00
Tom Hughes
1f4d48eaf3 Fix some deprecation warnings 2019-11-24 11:05:02 +00:00
Tom Hughes
91a37235ac Remove support for old style user images 2019-07-16 22:33:26 +01:00
Tom Hughes
6c202448ad Move user images to Active Storage with paperclip as a fallback 2019-07-09 19:17:30 +01:00
Andy Allan
d102c9aaf4 Move all settings to settings.yml
We leave the STATUS setting alone, since it's required before rails
boots. The test-specific settings now live in config/settings/test.yml
2019-03-13 18:06:23 +01:00
Andy Allan
4395b79bf7 Move notifier.rb into app/mailers
This is the expected location for mailers
2018-10-31 17:19:18 +01:00