Commit Graph

2836 Commits

Author SHA1 Message Date
Marius Balteanu
81745a295e Add an index to users login to speed up find user by login. For MySQL and MSSQL databases which are case-insensitive by default, search for lower cases in the existing results to avoid extra queries (#43838).
git-svn-id: https://svn.redmine.org/redmine/trunk@24516 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-03-19 06:21:30 +00:00
Marius Balteanu
6edf16af50 Updates for 6.1.2 release.
git-svn-id: https://svn.redmine.org/redmine/trunk@24506 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-03-17 07:25:08 +00:00
Go MAEDA
3dcd3736af Add preview support for Microsoft Office and LibreOffice Writer files via Pandoc Markdown conversion (#8959).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24485 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-03-10 06:35:56 +00:00
Marius Balteanu
390f581a89 Allow themes to change default icons sprite (#43087):
* name of the sprite must be icons.svg.
* if the icon doesn't exist in the theme sprite, it will fallback to default icon. 



git-svn-id: https://svn.redmine.org/redmine/trunk@24449 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-22 03:23:41 +00:00
Marius Balteanu
d434371614 Moves webhook implementation to acts_as_webhookable (#29664).
git-svn-id: https://svn.redmine.org/redmine/trunk@24442 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-22 03:02:22 +00:00
Marius Balteanu
0b802d2585 Reverts r24440 due to wrong issue number (#35685).
git-svn-id: https://svn.redmine.org/redmine/trunk@24441 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-22 02:58:06 +00:00
Marius Balteanu
5ba938f857 Moves webhook implementation to acts_as_webhookable (#35685).
git-svn-id: https://svn.redmine.org/redmine/trunk@24440 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-22 02:54:27 +00:00
Marius Balteanu
da22e51b35 Fixes Wiki "Edit this section" does not extract SeText headings correctly in CommonMark Markdown (#40918).
git-svn-id: https://svn.redmine.org/redmine/trunk@24434 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-19 04:24:12 +00:00
Marius Balteanu
67e70905d5 Fixes copy button appears only on the last pre when multiple pre blocks exist (#43801, #42737).
git-svn-id: https://svn.redmine.org/redmine/trunk@24413 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-15 03:32:09 +00:00
Marius Balteanu
8bf7f09112 Refactors parse_hires_images and parse_inline_attachments methods from ApplicationHelper to scrubbers (#43745).
git-svn-id: https://svn.redmine.org/redmine/trunk@24406 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-12 02:52:28 +00:00
Marius Balteanu
84483d6382 Stop traversal of child elements at @Loofah::Scrubber::STOP@ signal (#42737).
Patch by Takashi Kato (user:tohosaku).


git-svn-id: https://svn.redmine.org/redmine/trunk@24400 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-07 10:38:27 +00:00
Marius Balteanu
a56413532c Optimize Loofah performance by passing the HTML only once (#42737).
git-svn-id: https://svn.redmine.org/redmine/trunk@24399 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-07 10:27:50 +00:00
Marius Balteanu
84b644d529 Improve regex in @FilesystemAdapter#target@ (#43690).
Patch Holger Just (user:hjust).


git-svn-id: https://svn.redmine.org/redmine/trunk@24393 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-03 01:54:08 +00:00
Go MAEDA
3a23ddac1f Update Gantt collapse/expand handler to use CSS logical properties (#43678).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24384 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-29 07:36:07 +00:00
Go MAEDA
d11ba8e3d7 Replace hard-coded left, border-left, and top CSS properties with logical properties in Gantt (#43678).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24383 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-29 07:34:28 +00:00
Marius Balteanu
da5245ea06 Add stimulus clipboard_controller and render copy button on the backend using copypre_scrubber (#43643).
Patch by Takashi Kato (user:tohosaku).



git-svn-id: https://svn.redmine.org/redmine/trunk@24360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-23 16:14:04 +00:00
Marius Balteanu
d46e990d5a Adds missing files from previous commit (#43643).
git-svn-id: https://svn.redmine.org/redmine/trunk@24359 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-23 16:09:34 +00:00
Marius Balteanu
f7f585a6d3 Unify syntax_highlight_scrubber in textile and common (#43643).
Patch by Takashi Kato (user:tohosaku).
 


git-svn-id: https://svn.redmine.org/redmine/trunk@24358 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-23 16:08:33 +00:00
Marius Balteanu
acf0f9019e Support Loofah for textile (#43643):
* Add TablesortScrubber to both CommonMark and Textile Formatters. It will now be determined on the server-side whether to use tablesort.
* Migrate tablesort to Stimulus controller.
* Update tablesort to v5.7.0.
* Switch tablesort to ESM.

Patch by Takashi Kato (user:tohosaku).



git-svn-id: https://svn.redmine.org/redmine/trunk@24357 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-23 16:05:42 +00:00
Marius Balteanu
8560be5b12 Updates description for include_subprojects=true (#43631).
git-svn-id: https://svn.redmine.org/redmine/trunk@24339 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-22 07:32:47 +00:00
Marius Balteanu
ff5a336ddb Fixes a bug where the link to subproject wiki page points to parent project (#43631).
git-svn-id: https://svn.redmine.org/redmine/trunk@24336 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-21 07:03:25 +00:00
Marius Balteanu
c8aa171cfb Adds the include_subprojects=true option to the recent_pages macro, allowing users to list recently updated pages from a project and its subprojects (#43631).
git-svn-id: https://svn.redmine.org/redmine/trunk@24334 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-20 18:01:19 +00:00
Go MAEDA
6c932cf98c Add a MySQL optimizer hint to fix a performance regression introduced in r23979 when searching issues with custom fields (#43651).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24289 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-10 01:58:32 +00:00
Marius Balteanu
154cc9557a Updates for 6.1.1 release.
git-svn-id: https://svn.redmine.org/redmine/trunk@24276 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-06 02:15:12 +00:00
Marius Balteanu
d3aa4e1458 Avoid generating PDF thumbnails for PostScript files (#43451).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24267 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-05 08:32:06 +00:00
Marius Balteanu
23a93e0e06 Use MIME type instead of the is_pdf flag to detect PDFs when generating thumbnails (#43451).
Patch by Go MAEDA (user:maeda).



git-svn-id: https://svn.redmine.org/redmine/trunk@24266 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-05 08:30:07 +00:00
Marius Balteanu
b8daf724f8 Adds 'project' option to recent_pages macro in order to display recent pages from a specific project (#43372).
Patch by Florian Walchshofer (user:amiswalc).



git-svn-id: https://svn.redmine.org/redmine/trunk@24235 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-12-28 02:57:00 +00:00
Marius Balteanu
11612e5174 Fixes error executing the include macro (Page not found) in projects list (#43526).
Patch by Mizuki ISHIKAWA (user:ishikawa999). 



git-svn-id: https://svn.redmine.org/redmine/trunk@24234 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-12-28 02:55:01 +00:00
Go MAEDA
43f72bb6f2 Remove unused method addable_watcher_users from acts_as_watchable.rb (#43429).
git-svn-id: https://svn.redmine.org/redmine/trunk@24215 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-12-18 10:19:49 +00:00
Marius Balteanu
2cd1e05fe8 Fixes significant performance degradation introduced in r24094 by removing the CSS selectors from scrubbers (#43446).
Patch by Takashi Kato (user:tohosaku).


git-svn-id: https://svn.redmine.org/redmine/trunk@24139 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-11-10 08:23:01 +00:00
Go MAEDA
48a0e9ade2 Fix RuboCop Style/RedundantRegexpEscape (#43437).
git-svn-id: https://svn.redmine.org/redmine/trunk@24120 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-11-05 06:56:50 +00:00
Go MAEDA
3a3194bbd5 Add copyright headers to webhook-related files (#29664).
git-svn-id: https://svn.redmine.org/redmine/trunk@24113 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-11-03 09:28:35 +00:00
Go MAEDA
1525eef7dd Progress bar custom field shows only "%" instead of "0%" when value is nil (#43409).
Patch by Nishida Yuya (user:nishidayuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@24112 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-11-03 08:23:58 +00:00
Marius Balteanu
d5c21a7ae2 Properly rename scrubber files (#42737).
git-svn-id: https://svn.redmine.org/redmine/trunk@24096 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-31 07:22:50 +00:00
Marius Balteanu
d89a3b5e6f Replacing html-pipeline with Loofah for HTML Filtering (#42737).
Patch by Takashi Kato (user:tohosaku).



git-svn-id: https://svn.redmine.org/redmine/trunk@24094 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-31 06:38:27 +00:00
Marius Balteanu
19927b2382 Localize default commonmark alert titles (#43379).
Patch by Go MAEDA (user:maeda) and Marius BALTEANU (user:marius.balteanu).



git-svn-id: https://svn.redmine.org/redmine/trunk@24093 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-31 06:32:31 +00:00
Go MAEDA
3775bb31d6 Extract Gantt view structure and wire Stimulus controllers (#43397).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@24085 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-29 02:35:11 +00:00
Marius Balteanu
27bade55ee Localize commonmark alert extension (#43379).
Patch by Florian Walchshofer (user:amiswalc).


git-svn-id: https://svn.redmine.org/redmine/trunk@24077 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-27 22:06:45 +00:00
Marius Balteanu
8669c87b94 Updates propshaft to 1.3.
Patch by Takashi Kato (user:tohosaku).



git-svn-id: https://svn.redmine.org/redmine/trunk@24074 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-27 20:36:32 +00:00
Go MAEDA
48d1a43882 Update Gantt chart colors to use Open Color palette (#43256).
git-svn-id: https://svn.redmine.org/redmine/trunk@24036 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-07 08:33:38 +00:00
Marius Balteanu
a524967fbc Adds the :use_webhooks permission in order to allow users to use webhooks only in projects where they have this permission. This is checked when a hook is saved, and before a hook runs (#29664).
Patch by Jens Krämer (user:jkraemer).



git-svn-id: https://svn.redmine.org/redmine/trunk@24035 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-07 06:51:33 +00:00
Marius Balteanu
d90d192f48 Introduces issue webhooks (#29664):
* users can set up hooks for issue creation, update and deletion events, for any number of projects
* hooks run in the context of the creating user, and only if the object in question is visible to that user
* the actual HTTP call is done in ActiveJob
* webhook calls are optionally signed the same way GitHub does

Patch by Jens Krämer (user:jkraemer).



git-svn-id: https://svn.redmine.org/redmine/trunk@24034 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-07 06:49:14 +00:00
Marius Balteanu
4837c0fbe3 Replaces the use of text_area with textarea (#43276).
git-svn-id: https://svn.redmine.org/redmine/trunk@24030 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-06 22:45:02 +00:00
Marius Balteanu
e349d3d959 Fix labels not displayed for form.text_area fields in Redmine with Rails 8 (#43268, #43205).
Patch by Mizuki ISHIKAWA (user:ishikawa999).



git-svn-id: https://svn.redmine.org/redmine/trunk@24020 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-29 20:12:23 +00:00
Marius Balteanu
d745168d57 Enables CJK friendly emphasis extension for CommonMark (#43234).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@24013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-25 05:30:33 +00:00
Marius Balteanu
72064629b0 Updates for 6.1.0 release.
git-svn-id: https://svn.redmine.org/redmine/trunk@24007 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-21 17:19:06 +00:00
Marius Balteanu
c85c827d22 Updates for 6.0.7 release.
git-svn-id: https://svn.redmine.org/redmine/trunk@23995 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-21 10:01:13 +00:00
Marius Balteanu
b21e0513aa Adds documentation for recent_pages macro (#38501).
git-svn-id: https://svn.redmine.org/redmine/trunk@23974 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-13 08:51:04 +00:00
Marius Balteanu
3a19544136 Adds {{recent_pages}} macro that displays a list of recently updated Wiki pages (#38501).
Patch by Go MAEDA (user:maeda).

git-svn-id: https://svn.redmine.org/redmine/trunk@23957 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 08:20:04 +00:00
Marius Balteanu
81d647e34d Render anonymous and group avatars also when gravatar is disabled (#29824).
git-svn-id: https://svn.redmine.org/redmine/trunk@23940 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-06 22:11:58 +00:00