summaryrefslogtreecommitdiffstats
path: root/app/helpers
Commit message (Collapse)AuthorAgeFilesLines
* Refactor avatar helper method (#29824).HEADmasterMarius Balteanu14 hours1-25/+40
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23907 e93f8b46-1217-0410-a6f0-8f06a7374b81
* When the Gravatar service is disabled, display the user's initials as a ↵Marius Balteanu15 hours1-0/+5
| | | | | | 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
* Adds method @initials@ to @Principal@ and return @nil@ by default (#42623).Marius Balteanu2025-07-151-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23888 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor, refresh UI and unify the structure of journals, replies and ↵Marius Balteanu2025-07-141-1/+1
| | | | | | comments (#42972, #40744). git-svn-id: https://svn.redmine.org/redmine/trunk@23887 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not add attribute "icon" to attachment elements when the icon option is ↵Marius Balteanu2025-07-051-1/+1
| | | | | | passed (#42953). git-svn-id: https://svn.redmine.org/redmine/trunk@23862 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Hide action buttons when printing (#42794).Marius Balteanu2025-07-051-1/+1
| | | | | | Patch by Luc Luc (user:iq2luc). git-svn-id: https://svn.redmine.org/redmine/trunk@23860 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reimplement partial quote feature using Stimulus JS (#42515).Marius Balteanu2025-07-041-2/+3
| | | | | | Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23854 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace nil check using ternary operator with safe navigation operator when ↵Go MAEDA2025-06-081-1/+1
| | | | | | | | | accessing hashes (#41884). Using the ternary operator for nil checking caused a runtime error in the Style/SafeNavigation cop during `rubocop --regenerate-todo` with RuboCop 1.76.0. Replacing it with the safe navigation operator avoids the error. git-svn-id: https://svn.redmine.org/redmine/trunk@23824 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix render_flash_messages method to ignore non-string flash values and ↵Go MAEDA2025-06-061-0/+2
| | | | | | | | | prevent errors (#42073). Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23821 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adjust margin around icons in project list descriptions (#42818).Go MAEDA2025-06-051-2/+2
| | | | | | | Patch by Mizuki ISHIKAWA (user:ishikawa999) and Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23820 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces custom CSS rules with the @style: filled@ parameter to render the ↵Marius Balteanu2025-06-011-1/+1
| | | | | | thumbs up icon as filled (#42630). git-svn-id: https://svn.redmine.org/redmine/trunk@23814 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change quote note icon to quotation marks (#31531).Marius Balteanu2025-05-301-3/+4
| | | | | | 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
* "Edit this section" button is missing for headings rendered as multiline ↵Go MAEDA2025-05-271-1/+1
| | | | | | | | | HTML (#42332). Patch by Abe Tomoaki (user:abetomo). git-svn-id: https://svn.redmine.org/redmine/trunk@23802 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow reactions on journals with property changes only (#42630).Go MAEDA2025-05-172-3/+3
| | | | | | | Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23781 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improve reaction button style to better highlight existing reactions (#42630):Go MAEDA2025-05-161-3/+3
| | | | | | | | | | | * 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
* Improve method and variable naming for clarity and consistency (#42630).Go MAEDA2025-05-151-4/+4
| | | | | | | Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23769 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Initials to the list of default gratavar options (#42623).Marius Balteanu2025-05-142-1/+3
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23767 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Introduce reactions feature (so-called "like button") to issues, notes, ↵Go MAEDA2025-05-115-0/+106
| | | | | | | | | 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
* Optimize watchers list rendering by eager loading email addresses (#42589).Go MAEDA2025-04-271-1/+3
| | | | | | | Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23722 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix Rubocop Style/ArgumentsForwarding (#42496).Go MAEDA2025-04-214-51/+51
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23698 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Introduces Stimulus as a Javascript framework (#42510):Marius Balteanu2025-04-211-1/+1
| | | | | | | | | * old @application.js@ from @app/assets/javascripts@ become @application-legacy.js@ in favour of @application.js@ provided by Stimulus * adds @importmap@ gem to handle JavaScript modules using logical names that map to versioned/digested files Stimulus will be used for new functionality and, over time, to migrate existing features from JQuery / JQuery UI. git-svn-id: https://svn.redmine.org/redmine/trunk@23697 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes commit message in issue history might be rendered in incorrect context ↵Marius Balteanu2025-04-181-1/+1
| | | | | | | | (#42545). Patch by Felix Schäfer (user:felix). git-svn-id: https://svn.redmine.org/redmine/trunk@23672 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add a button to copy `pre` code block content to the clipboard (#29214).Go MAEDA2025-04-171-1/+9
| | | | | | | Patch by Mizuki ISHIKAWA (user:ishikawa999) and Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23663 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improve SVG icon compatibility with RTL languages by adding the @rtl@ ↵Marius Balteanu2025-04-131-3/+4
| | | | | | parameter to @sprite_icon@ method. When it is @true@, it adds the 'icon-rtl' class to SVG icons, flipping their direction if an RTL language is used (#42465). git-svn-id: https://svn.redmine.org/redmine/trunk@23654 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update RuboCop to 1.75 (#41884).Go MAEDA2025-04-121-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23638 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Configurable columns for related and sub issues lists (#42477).Go MAEDA2025-04-021-53/+53
| | | | | | | Patch by Jens Krämer (user:jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@23596 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes rubocop offenses (#41952).Marius Balteanu2025-03-261-3/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23568 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces legacy icons with SVG icons in error explanation (#41952).Marius Balteanu2025-03-262-2/+8
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23563 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces legacy icons in flash notices with SVG icons (#41952).Marius Balteanu2025-03-262-1/+14
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23562 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Missing thousands separator in Integer and Float custom field totals (#42342).Go MAEDA2025-03-261-0/+2
| | | | | | | Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23559 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changes issue watch button icon to eye image to align icon with function and ↵Go MAEDA2025-03-251-1/+2
| | | | | | | | | 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
* Replace SCM action icons in the tree view of the repository browser (#41967).Marius Balteanu2025-03-242-2/+14
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Extract project query for admins to a separate ProjectAdminQuery model (#42352).Marius Balteanu2025-03-091-2/+0
| | | | | | Patch by Holger Just (user:hjust). git-svn-id: https://svn.redmine.org/redmine/trunk@23531 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ensures data-disable-with attribute is properly escaped when uery links are ↵Marius Balteanu2025-03-071-1/+1
| | | | | | | | | rendered (#42238). Patch by Holger Just (user:hjust). git-svn-id: https://svn.redmine.org/redmine/trunk@23522 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor thumbnail markup for improved structure and semantics (#42133).Go MAEDA2025-01-231-12/+11
| | | | | | | Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23460 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix rapid flickering of placeholder icon for non-existent thumbnails on ↵Go MAEDA2025-01-211-0/+1
| | | | | | | | | hover (#42084). Patch by Mizuki ISHIKAWA (user:ishikawa999). git-svn-id: https://svn.redmine.org/redmine/trunk@23452 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Abbreviate quoted text in descriptions in Activity view (#42043).Go MAEDA2025-01-021-2/+10
| | | | | | | Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23428 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Increase the maximum description length to 240 characters in the Activity ↵Go MAEDA2024-12-271-1/+1
| | | | | | | | | view (#42041). Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23420 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds global setting In Display tab to disable JS based table sort in wiki ↵Marius Balteanu2024-12-111-5/+5
| | | | | | | | content (#40588). Patch by Jens Krämer (user:jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@23401 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces warning icon with SVG in watcher list and workflow warnings (#41918).Marius Balteanu2024-12-111-1/+1
| | | | | | Patch by Takenori TAKAKI (user:takenory). git-svn-id: https://svn.redmine.org/redmine/trunk@23388 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes group icons not displayed only using the SVG icon (#41853).Marius Balteanu2024-12-102-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23379 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces legacy magnifier icon with SVG icon in project jump and in search ↵Marius Balteanu2024-12-081-1/+1
| | | | | | field from mobile view (#41714). git-svn-id: https://svn.redmine.org/redmine/trunk@23368 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Spent time CSV report returning `hours` as Rational instead of Float ↵Go MAEDA2024-12-041-1/+1
| | | | | | | | | (#41895). Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23351 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r23328 (#41853).Marius Balteanu2024-11-302-7/+12
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes that group icons in Watchers box have both the old and the new icon ↵Marius Balteanu2024-11-292-12/+7
| | | | | | style (#41853). git-svn-id: https://svn.redmine.org/redmine/trunk@23328 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace deprecated raster icon with SVG in download button for issue ↵Go MAEDA2024-11-291-1/+1
| | | | | | | | | comments (#41883). Patch by Mizuki ISHIKAWA (user:ishikawa999). git-svn-id: https://svn.redmine.org/redmine/trunk@23323 e93f8b46-1217-0410-a6f0-8f06a7374b81
* @principal_icon@ method should accept a Principal as argument (#23980).Marius Balteanu2024-11-102-3/+6
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23230 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use double splat operator for icons methods that are extending @sprite_icon@ ↵Marius Balteanu2024-11-101-7/+7
| | | | | | (#23980). git-svn-id: https://svn.redmine.org/redmine/trunk@23229 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes double-escaping issue for a principal name with special chars (#41721, ↵Marius Balteanu2024-11-101-5/+5
| | | | | | | | #23980). Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23228 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed duplicate "disabled" class in the context_menus_helper result (#23980, ↵Go MAEDA2024-11-101-3/+7
| | | | | | | | | #41720). Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23226 e93f8b46-1217-0410-a6f0-8f06a7374b81