Commit Graph

243 Commits

Author SHA1 Message Date
Go MAEDA
bf2e86da80 Show 'text-plain' icon for Markdown and Textile files (#43805).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24412 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-14 08:50:04 +00:00
Go MAEDA
34a7812b71 Add file-type icons for audio, image, and video media types (#43805).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24411 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-14 08:48:10 +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
Go MAEDA
2dee4a95ab Rename IconsHelper#mype_type_icon to file_type_icon (#43797).
git-svn-id: https://svn.redmine.org/redmine/trunk@24403 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-09 03:34:21 +00:00
Go MAEDA
1c08b5b7a1 Update attachments list to show file-type icons instead of clip icons (#43797).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24402 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-09 02:46:13 +00:00
Go MAEDA
b69a9397c6 Change IconsHelper#icon_for_mime_type to accept raw MIME types instead of CSS class names (#43797).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24401 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-09 02:42:21 +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
12964f76ed Code cleanup (#43643).
git-svn-id: https://svn.redmine.org/redmine/trunk@24364 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-24 04:53:35 +00:00
Marius Balteanu
9e61fc978b Fix failing tests (#43643).
git-svn-id: https://svn.redmine.org/redmine/trunk@24362 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-23 19:28:40 +00:00
Marius Balteanu
083f8af2b8 Fix failing tests (#43643).
git-svn-id: https://svn.redmine.org/redmine/trunk@24361 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-23 16:31:34 +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
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
Go MAEDA
40dedd82de Remove deprecated method ApplicationHelper#render_if_exist (#43321).
git-svn-id: https://svn.redmine.org/redmine/trunk@24040 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-08 05:23:11 +00:00
Marius Balteanu
0da90f00e1 Support automatic list marker insertion in textareas (#43095).
Patch by Mizuki ISHIKAWA (user:ishikawa999).



git-svn-id: https://svn.redmine.org/redmine/trunk@24003 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-21 16:42:07 +00:00
Go MAEDA
bda20bad30 Remove unused tooltip variables from reactions_helper_test.rb (#42630).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23981 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-18 06:39:28 +00:00
Go MAEDA
f465577b78 Improve consistency and visibility of reaction buttons with reactions (#42630).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23980 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-18 06:36:41 +00:00
Marius Balteanu
343a2b4f2e Adds specific classes for anonymous and group avatars (#29824).
git-svn-id: https://svn.redmine.org/redmine/trunk@23954 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 06:59:25 +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
Marius Balteanu
30880b861f Run Setting.clear_cache after each test in order to decrease the number of random failing tests (#43130).
Patch by Katsuya HIDAKA (user:hidakatsuya).

git-svn-id: https://svn.redmine.org/redmine/trunk@23915 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-13 05:31:26 +00:00
Marius Balteanu
458072ab7d When the Gravatar service is disabled, display the user's initials as a fallback avatar. This provides a consistent user interface than the generic icon (#29824).
git-svn-id: https://svn.redmine.org/redmine/trunk@23903 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-07 19:07:33 +00:00
Marius Balteanu
c1115fea4a Fixes @icon-only@ class for quote reply button and test assertions that are always true (#42515).
git-svn-id: https://svn.redmine.org/redmine/trunk@23853 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-07-04 05:28:34 +00:00
Go MAEDA
8c10cf3f30 Fix render_flash_messages method to ignore non-string flash values and prevent errors (#42073).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23821 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-06 06:34:26 +00:00
Marius Balteanu
7645774634 Change quote note icon to quotation marks (#31531).
Patch by Mizuki ISHIKAWA (user:ishikawa999) and Marius BALTEANU (user:marius.balteanu).

git-svn-id: https://svn.redmine.org/redmine/trunk@23809 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-30 20:04:46 +00:00
Go MAEDA
9beb9d9c5c "Edit this section" button is missing for headings rendered as multiline HTML (#42332).
Patch by Abe Tomoaki (user:abetomo).


git-svn-id: https://svn.redmine.org/redmine/trunk@23802 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-27 01:55:37 +00:00
Go MAEDA
8d1ad3f239 Allow reactions on journals with property changes only (#42630).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23781 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-17 08:46:25 +00:00
Go MAEDA
48f09a5d87 Improve reaction button style to better highlight existing reactions (#42630):
* Hide count when zero
* Make non-zero count bold
* Remove underline on hover and active

Patch by Mizuki ISHIKAWA (user:ishikawa999).


git-svn-id: https://svn.redmine.org/redmine/trunk@23778 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-16 02:57:04 +00:00
Go MAEDA
e7703a0170 Show reaction counts and user names only for reactions visible to the logged-in user (#42630).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23768 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-15 05:01:54 +00:00
Marius Balteanu
66e2d1a9a9 Adds Initials to the list of default gratavar options (#42623).
git-svn-id: https://svn.redmine.org/redmine/trunk@23767 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-14 19:41:04 +00:00
Go MAEDA
403c10091f Introduce reactions feature (so-called "like button") to issues, notes, news, and forums (#42630).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23755 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-11 07:59:16 +00:00
Go MAEDA
e02d265f2c Changes issue watch button icon to eye image to align icon with function and improve visual clarity (#42305).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23557 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-03-25 08:44:23 +00:00
Go MAEDA
09167d0b32 format_hours method produces incorrect output for negative time values when Setting.timespan_format is "minutes" (#42172).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-01-30 22:11:19 +00:00
Go MAEDA
0e9753c9fd Refactor thumbnail markup for improved structure and semantics (#42133).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23460 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-01-23 01:41:22 +00:00
Go MAEDA
880e7a50b2 Fix rapid flickering of placeholder icon for non-existent thumbnails on hover (#42084).
Patch by Mizuki ISHIKAWA (user:ishikawa999).


git-svn-id: https://svn.redmine.org/redmine/trunk@23452 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-01-21 08:58:17 +00:00
Go MAEDA
9e80ee95e1 Abbreviate quoted text in descriptions in Activity view (#42043).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23428 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-01-02 02:44:39 +00:00
Go MAEDA
4fb1e4bea0 Use fixtures :all to ensure consistent test data and improve test reliability (#41961).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23391 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-12-11 10:17:57 +00:00
Marius Balteanu
910842a157 Fixes group icons not displayed only using the SVG icon (#41853).
git-svn-id: https://svn.redmine.org/redmine/trunk@23379 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-12-10 23:31:14 +00:00
Marius Balteanu
9c5199f5f5 Reverts r23328 (#41853).
git-svn-id: https://svn.redmine.org/redmine/trunk@23342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-30 10:51:51 +00:00
Marius Balteanu
018d89bf8a Fixes that group icons in Watchers box have both the old and the new icon style (#41853).
git-svn-id: https://svn.redmine.org/redmine/trunk@23328 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-29 07:58:59 +00:00
Marius Balteanu
d951636a01 Replaces two more occurrences of CommonMarker (#40197).
git-svn-id: https://svn.redmine.org/redmine/trunk@23251 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-11 19:48:32 +00:00
Marius Balteanu
d3d07db129 Fix failing test after r23230 (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23235 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-10 20:12:34 +00:00
Marius Balteanu
6d0eba75e9 @principal_icon@ method should accept a Principal as argument (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23230 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-10 15:31:46 +00:00
Marius Balteanu
ecee8ccaba Fixes broken @link_to_principal@ helper test caused by r23222 (#41711, #23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23227 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-10 11:36:23 +00:00
Go MAEDA
624f9bf3d1 Fixed duplicate "disabled" class in the context_menus_helper result (#23980, #41720).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23226 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-10 06:45:26 +00:00
Go MAEDA
44408dcf1b Added tests for context_menu_link helper (#23980, #41720).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23225 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-10 06:43:10 +00:00
Go MAEDA
49a84f263c Fix RuboCop Layout/TrailingEmptyLines in test/helpers/icons_helper_test.rb (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23207 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-04 01:29:05 +00:00
Marius Balteanu
92a1699afe Adds tests for @IconsHelper@ (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23205 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-03 23:05:04 +00:00
Go MAEDA
5407fea873 Drop deprecated Redcarpet based Markdown formatter (#40149).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23153 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-20 07:51:38 +00:00
Marius Balteanu
d1008280d8 Renames and improves methods provided by @IconsHelper@ (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-19 10:06:26 +00:00
Go MAEDA
8ca5d2fa1a Partial quoting feature for Issues and Forums (#41294).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23107 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-09 21:51:52 +00:00
Marius Balteanu
dfbb1b6856 Merges fav and fav-off icons in only one icon and fill the collor from CSS (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23089 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-09-29 19:16:15 +00:00