[openstreetmap/openstreetmap-website] Add unsubscribe link to diary comment notification email (PR #4523)
Anton Khorev
notifications at github.com
Sat Feb 17 03:23:30 UTC 2024
as I propose in #4505:
- add diary subscribe/unsubscribe pages for GET requests that contain a button to make a POST request

- these pages redirect to login if required
- add an unsubscribe page link to comment notification emails
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/4523
-- Commit Summary --
* Add diary entry subscribe/unsubscribe GET pages
* Add unsubscribe link to diary comment notification email
-- File Changes --
M app/controllers/diary_entries_controller.rb (16)
M app/mailers/user_mailer.rb (1)
M app/views/diary_entries/_diary_entry.html.erb (23)
A app/views/diary_entries/_diary_entry_heading.html.erb (21)
A app/views/diary_entries/subscribe.html.erb (12)
A app/views/diary_entries/unsubscribe.html.erb (12)
M app/views/user_mailer/diary_comment_notification.html.erb (3)
M app/views/user_mailer/diary_comment_notification.text.erb (2)
M config/locales/en.yml (8)
M config/routes.rb (4)
M test/controllers/diary_entries_controller_test.rb (46)
M test/mailers/user_mailer_test.rb (15)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/4523.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4523.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4523
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4523 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240216/99febe02/attachment.htm>
More information about the rails-dev
mailing list