24 Commits

Author SHA1 Message Date
Kabiru Mwenja b2d93c3a00 Use semantic work package identifier in sharing email links
The shared-work-package email built its "Open work package" link and its
text-part heading from the numeric primary key, so recipients on a
semantic-identifier instance still landed on /work_packages/<numeric-id>
rather than the semantic URL.

Pass the work package itself to the URL helper so to_param yields the
display id, and render the text heading with formatted_id to match the
other work package mailers. Also drops an unused @notification_url that
carried the same numeric-id problem.

STC-747
2026-06-02 09:55:45 +03:00
Henriette Darge ff4bbd9437 [74342] Issues in work package sharing notification email (#22918)
* Escape sharing info in mail correctly

* Localize the shared permissions in the mail

* Replace custom method with builtin `to_sentence`

* Restructure sentence and use verbs explicitly for better wording in other languages
2026-04-30 11:11:41 +02:00
Henriette Darge deeb026431 Adapt tests to new reminders and notifications structure 2026-03-30 11:56:23 +02:00
Oliver Günther 4d731dcab6 Replace raw and explicit html_safe calls 2026-03-20 09:49:10 +01:00
Ivan Kuchin ca5f8fb878 erb_lint auto fix trailing commas 2025-02-11 18:49:21 +01:00
Ivan Kuchin fba9d4b506 erb_lint auto fix quoted symbol 2025-02-11 18:49:21 +01:00
Ivan Kuchin 0f6a12da3a erb_lint auto fix layout 2025-02-11 18:49:20 +01:00
Ivan Kuchin fb715f21b9 erb_lint auto fix quotes 2025-02-11 18:49:19 +01:00
Ivan Kuchin 0b1f73ec79 erb_lint auto except rubocop linter 2025-02-11 18:49:19 +01:00
Andreas Pfohl d9ac8d0ca8 Added mail template for healthy storage notification 2024-03-01 09:27:37 +01:00
Henriette Darge 44ad93f01c Redirect to WP full view when a WP has been shared, because there is no notification entry to show 2023-12-13 10:54:19 +01:00
Oliver Günther 01cbb3ef1a Fix activation of invited users during sharing
https://community.openproject.org/work_packages/51262
2023-12-07 14:23:05 +01:00
Aaron Contreras 8f819153dd Use correct translation key in text-part email
The text-part email wasn't updated after agreeing on the design for
the html-part email.
2023-12-06 09:08:48 -05:00
Oliver Günther feb3edff13 Store salutation as setting to make it reusable 2023-11-02 19:41:35 +01:00
Oliver Günther c5c52d7959 Implement previewable scheduled meeting mailer based on common layout 2023-10-31 16:19:41 +01:00
Aaron Contreras 7492d5adb7 Use open_work_package instead of see_in_open_project translation 2023-10-25 08:35:54 -05:00
Henriette Darge 79ba82823c Escape App title in Email and extend test cases 2023-10-25 09:59:15 +02:00
Henriette Darge 4a6fd00ce3 Skip creation email when inline creating from the shareWP modal. Instead show an additional note in the Sharing Mail 2023-10-24 15:06:45 +02:00
Aaron Contreras c1e79db06b Enqueue emails for Group shares 2023-10-16 09:47:00 -05:00
Aaron Contreras ec5481a056 Add text-version of shared_work_package email 2023-09-27 09:09:08 -05:00
Aaron Contreras 5d624a1941 Rework email design to adapt to existing styles 2023-09-27 08:42:06 -05:00
Aaron Contreras bbbbf1b7ae Create shared_work_package mail body 2023-09-26 18:07:59 -05:00
Aaron Contreras 1602237405 Create shared_work_package mailer header 2023-09-26 18:07:58 -05:00
Aaron Contreras 2553901a77 Generate SharingMailer with the shared_work_package mailer views
* Runs `./bin/rails generate Sharing shared_work_package`

* Customizes mail addressing to the membership's principal.

* Customizes mail subject with a custom locale.
2023-09-25 15:23:29 -05:00