127 Commits

Author SHA1 Message Date
Kabiru Mwenja f12fc7551f Migrate remaining mailers to format_mail_html / format_mail_text (#23387)
The view-helper migration introduced by the parent PR now covers the
remaining mailer surfaces: UserMailer (`message_posted`, `news_added`,
`news_comment_added`), ProjectMailer (`project_created`),
ProjectArtifactsMailer (`creation_wizard_submitted`), MemberMailer
(`added_project`, `updated_project`, `updated_global`), AnnouncementMailer
(`announce`), DocumentsMailer (`document_added`), and the shared mailer
layout (`localized_emails_header`, `localized_emails_footer`).

Sites drop the `static_html: true` / `only_path: false` / `plain_text: true`
boilerplate; `render_mode:` pinning lives in the helper.

The layout previously called `OpenProject::TextFormatting::Renderer.format_text`
directly, bypassing the helper layer. The empty visibility cache (no
current_user-scoped preload at layout time) is handled by the existing
fallback in `LinkHandlers::WorkPackages#text_only?` — covered by a new
sanity spec in `user_mailer_spec.rb` that exercises the header path with
a WP reference and asserts plain-text formatted_id rendering.

Per-bucket regression coverage added: absolute-URL and formatted_id
assertions across both classic and semantic identifier modes, mirroring
the WorkPackageMailer spec pattern.
2026-05-28 12:48:43 +03:00
Oliver Günther 4d731dcab6 Replace raw and explicit html_safe calls 2026-03-20 09:49:10 +01:00
OpenProject Actions CI 5e9e1f00df Merge branch 'release/17.1' into dev 2026-02-17 04:18:29 +00:00
Oliver Günther 281a89eed7 Fix link in activation limit reached email 2026-02-16 20:05:47 +01:00
Dombi Attila bc5ff90ddc Merge branch 'dev' into merge-release/17.1-20260213121048 2026-02-13 22:20:57 +02:00
Oliver Günther 32828ce0e6 Fix wiki page author 2026-02-13 07:35:26 +01:00
Klaus Zanders de3fd5fd74 Fix more tests and wrong links after refactoring 2026-02-09 15:08:13 +01:00
Klaus Zanders 361e8461d2 fix problems uncovered in routing specs 2026-02-09 15:08:11 +01:00
Alexander Brandon Coles 8378e6d629 Fix illegal HTML nesting (Herb Compilation errors)
Fixes `InvalidNestingError` found when running:

    herb analyze .
2025-12-22 10:39:03 -03:00
Henriette Darge ab9d5f8d35 Remove outdated danger zone and replace it with a DangerDialog 2025-11-26 16:29:25 +01:00
Oliver Günther c84dd850fa Refactor static links to ensure users have to go through url_for
This ensures links will be translated if they are part of the website
2025-09-09 13:43:26 +02:00
Jan Sandbrink 3b775335a0 Use Primer to render links in #link_translate 2025-07-31 08:52:40 +02:00
Ivan Kuchin a98789d986 erb_lint auto fix part of style 2/3 2025-02-11 18:49:21 +01:00
Ivan Kuchin 7c24cf6048 erb_lint auto fix part of style 1/3 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
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Dombi Attila ba16112745 Use Rails.application instead of OpenProject::Application 2024-02-01 14:22:04 +02:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Aaron Contreras 44df33c8b9 Fix: Rename mail_body_wiki_content_* to mail_body_wiki_page_* 2023-09-05 10:50:50 -05:00
Oliver Günther 1a4bc24480 Inform users about external password change
https://community.openproject.org/work_packages/36011
2023-08-17 08:20:24 +02:00
Oliver Günther e32d2d0058 Remove AuthSource base namespace, model 2023-07-27 08:16:43 +02:00
ulferts a328940c3a merge wiki_content into page 2023-04-05 10:05:20 +02:00
Christophe Bliard 69f3e9a761 [#45401] Remove redmine:send_reminders rake task
With the date alerts being implemented, the redmine:send_reminders rake
task became superfluous.
2023-01-02 11:06:42 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Oliver Günther ee4fdf78a8 In case of errors in mail_handler, serialize mail object properly
The mail being passed to UserMailer cannot be serialized by ActiveJob,
so this fails whenever background jobs are being used.

Instead of trying to pass a Mail::Message, only pass in the values we
need to send out the response.

https://community.openproject.org/wp/35823
2022-08-10 16:11:01 +02:00
Markus Kahl d5f00b5700 error reply for failed incoming email (#10726)
* error reply for failed incoming email

* deprecated date.to_s(:db) replaced with to_fs(:db)

* rubocop concessions

* nest away

* do not report errors to unknown users by default

* use verifying double
2022-06-01 15:48:26 +02:00
Andreas Pfohl d3111b1b33 [#41728] Wiki updated notification: "Updated by" is shown to always be the "author"
https://community.openproject.org/work_packages/41728

- No longer overwrite Wiki page author with last editor
- Use user from Wiki page journal as author for mail notification
2022-04-12 15:48:43 +02:00
ulferts 2dc556324e Merge pull request #10241 from opf/feature/41311/improve-whitelisting-app-title
[41311] Use app title where applicable instead of OpenProject
2022-03-03 14:31:49 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther 5683de8090 [41311] Use app title where applicable instead of OpenProject
https://community.openproject.org/wp/41311
2022-03-01 15:45:17 +01:00
ulferts 32a19b622e use current user for wiki content update
Before, the initial author was always used via #add_journal and with a virtual attribute that is already present as journal_notes
2021-10-25 22:11:27 +02:00
ulferts 0717357d31 linting 2021-09-30 12:59:26 +02:00
ulferts 672a5c79b6 consolidate work package mailing 2021-09-30 12:59:26 +02:00
ulferts 32d2602d76 remove individual work package mails (added/updated) 2021-09-17 11:19:27 +02:00
Henriette Darge 46a504a3c2 Replace "contact us" by "contact your administrator" 2021-09-15 08:00:59 +02:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
Markus Kahl 6156d4b837 fixed attachments deletion in backup_job, and more (#9221) 2021-05-05 10:37:05 +01:00
Markus Kahl 8c8b8bbfa7 create backups via UI (#9136)
* create backups via UI

* Fix import of modal service

* introduced backup token and addressed remaining comments

* allow disabling permissions

* improvements

- only make user wait to use backup token in if really necessary
- notify admins of new backup token
- disable 'include attachments' option in UI if unavailable
- documentation
- misc

* spec fixes

* fixed feature spec

* allow setting capybara host in every case

* removed unused style file

* addressed review feedback, added further feature specs

* polish (code climate)

* Avoid empty attachments

* Don't raise filesize validation for internal exports

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-04-28 08:51:43 +01:00
ulferts b8ca382d34 Group API (#9034)
* include group members into resource

* GET /api/v3/groups endpoint

* POST /api/v3/groups

* PATCH /api/v3/groups/:id

* DELETE /api/v3/groups/:id
2021-02-23 09:59:49 +01:00
ulferts 5ea185ef66 Placeholder user project members (#8961)
* remove intermediate placeholder scope

Doing so, placeholder users will begin to show up in the system

* remove scope without value

* extract scope

* use enum for status

* allow placeholder users to become project members

* display placeholder user member on members widget

* remove now superfluous method

The status name can simply be queried via #status now

* replace possible_assignees/responsibles on project

This also leads to placeholder users becoming eligible as assignees and
responsibles.

* fix aggregated scope on bulk edit

* linting

* remove IssueHelper
2021-02-04 09:52:56 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
ulferts 5968c0b18a Fix/replace custom i18n function (#8681)
* replace custom i18n function calls

* remove custom i18n method
2020-09-16 11:26:15 +02:00
ulferts 27b41a313c replace custom i18n function in views 2020-09-15 07:23:59 +02:00
Oliver Günther ff33c0f937 Also extend text mail
[ci skip]
2020-07-20 08:43:55 +02:00
bsatarnejad 7e40fcae10 improving code structure 2020-07-17 10:27:56 +02:00
bsatarnejad 8e42259ac9 improve the display of project member invitation email 2020-07-16 15:28:48 +02:00
ulferts 0b15db3c9a rename fixed_version to version 2020-03-27 09:10:44 +01:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00