summaryrefslogtreecommitdiffstats
path: root/lib/redmine/helpers
Commit message (Collapse)AuthorAgeFilesLines
* Merged r23597 and r23598 from trunk to 6.0-stable (#42145).Marius Balteanu2025-04-061-1/+9
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23599 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace "even" and "odd" CSS classes with "this-month" and "other-month" for ↵Go MAEDA2024-10-201-1/+1
| | | | | | | | | calendar days (#41509). Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23151 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes gantt collapse/expand buttons are not available after switching to SVG ↵Marius Balteanu2024-10-081-3/+3
| | | | | | icons (#41447, #23980). git-svn-id: https://svn.redmine.org/redmine/trunk@23104 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update MiniMagick to 5.0 (#41312).Go MAEDA2024-10-021-2/+2
| | | | | | | Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23099 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Gantt progress line misrendering for 0% progress issues/versions with future ↵Go MAEDA2024-09-231-2/+2
| | | | | | | | | start dates beyond chart range (#41263). Contributed by Minoru Maeda (user:maeda-m). git-svn-id: https://svn.redmine.org/redmine/trunk@23068 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor Calendar#first_wday method for improved readability and efficiency ↵Go MAEDA2024-09-071-10/+9
| | | | | | (#41188). git-svn-id: https://svn.redmine.org/redmine/trunk@23032 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces project, version and issue icons from Gantt view with SVG icons ↵Marius Balteanu2024-09-061-2/+7
| | | | | | (#23980). git-svn-id: https://svn.redmine.org/redmine/trunk@23029 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use Array#intersect? introduced in Ruby 3.1 (#38585).Go MAEDA2024-08-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22972 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Layout/SpaceAfterComma, one of the offenses enabled in ↵Go MAEDA2024-08-121-2/+2
| | | | | | rubocop-rails-omakase (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@22953 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Layout/EmptyLinesAroundModuleBody, one of the offenses ↵Go MAEDA2024-08-121-1/+0
| | | | | | enabled in rubocop-rails-omakase (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@22951 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-265-5/+5
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optimize gantt chart rendering for issues without subtasks (#40000).Go MAEDA2024-01-031-1/+1
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22589 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/StringIdentifierArgument (#39888).Go MAEDA2023-12-201-4/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Correctly escape issue text in Gantt PNG export for ImageMagick convert ↵Go MAEDA2023-09-211-4/+10
| | | | | | | | | (#38728). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22314 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display calendar in vertical list layout on mobile screens (#33682).Go MAEDA2023-08-271-0/+17
| | | | | | | Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@22283 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ruby 2.7: Fix RuboCop offense Performance/MapCompact (#38134).Go MAEDA2023-01-172-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22055 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/MinMaxComparison (#36919).Go MAEDA2023-01-021-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22019 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-015-5/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Rails/Pluck (#37248).Go MAEDA2022-10-281-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix gantt PNG export ignores imagemagick_convert_command (#35027).Marius Balteanu2022-02-201-0/+3
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21427 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Duplicate activities in time entry report when project-specific activies ↵Go MAEDA2022-01-191-1/+1
| | | | | | | | | exist (#20018). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21371 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-025-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix typo in class 'icon-expended' (#36149).Marius Balteanu2021-11-081-1/+1
| | | | | | Patch by Bernhard Rohloff. git-svn-id: http://svn.redmine.org/redmine/trunk@21275 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move @lib/diff.rb@ to @lib/redmine/string_array_diff@ and extract @Diffable@ ↵Marius Balteanu2021-10-271-1/+1
| | | | | | class to its own file (#29914, #32938). git-svn-id: http://svn.redmine.org/redmine/trunk@21262 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove unused argument from Redmine::Helpers::TimeReport (#33079).Go MAEDA2021-08-191-2/+1
| | | | | | | Patch by Kevin Fischer. git-svn-id: http://svn.redmine.org/redmine/trunk@21196 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Relax allowed protocols in links by denying specific protocols for ↵Marius Balteanu2021-08-111-0/+13
| | | | | | | | CommonMark text formatting (#32424). Patch by Martin Cizek. git-svn-id: http://svn.redmine.org/redmine/trunk@21161 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Progress bar for a shared version on gantt disappears when the tree is ↵Go MAEDA2021-07-311-1/+6
| | | | | | | | | collapsed and then expanded (#34694). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21115 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Possible double includes in issue query in gantt helper (#33381).Go MAEDA2021-06-061-1/+0
| | | | | | | Contributed by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@21028 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-255-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of lib/redmine/helpers/gantt.rbToshi MARUYAMA2020-12-091-9/+30
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20595 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to lib/redmine/helpers/gantt.rbToshi MARUYAMA2020-12-041-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20571 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of lib/redmine/helpers/gantt.rbToshi MARUYAMA2020-11-201-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20450 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Starting or ending marker is not displayed if they are on the leftmost or ↵Go MAEDA2020-08-121-2/+2
| | | | | | | | | rightmost boundary of the gantt (#33175). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19976 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of lib/redmine/helpers/time_report.rbToshi MARUYAMA2020-08-071-25/+26
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19953 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Gantt bar is not displayed if the due date is the leftmost date or the start ↵Go MAEDA2020-07-251-1/+1
| | | | | | | | | date is the rightmost date (#33140). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19935 e93f8b46-1217-0410-a6f0-8f06a7374b81
* gantt: simplify week day logic in to_pdf() at lib/redmine/helpers/gantt.rbToshi MARUYAMA2020-05-271-11/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19797 e93f8b46-1217-0410-a6f0-8f06a7374b81
* gantt: simplify week day logic in to_image() at lib/redmine/helpers/gantt.rbToshi MARUYAMA2020-05-271-5/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19796 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded () from to_pdf() at lib/redmine/helpers/gantt.rbToshi MARUYAMA2020-05-271-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19788 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that viewing gantt causes SQL error with SQL Server (#32737).Go MAEDA2020-04-021-1/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@19637 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use field_activity rather than label_activity in the context of time ↵Go MAEDA2020-03-261-1/+1
| | | | | | | | | tracking (#33186). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that end markers in gantt PDF are misaligned (#19248).Go MAEDA2020-03-201-3/+3
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19595 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Gantt bars for single-day tasks may be rendered wrongly in PDF (#23645).Go MAEDA2020-03-201-3/+6
| | | | | | | Patch by Daniel Ritz. git-svn-id: http://svn.redmine.org/redmine/trunk@19592 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-035-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Style/MethodCallWithoutArgsParentheses in ↵Toshi MARUYAMA2019-11-241-2/+2
| | | | | | lib/redmine/helpers/gantt.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19255 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in lib/redmine/helpers/gantt.rbToshi MARUYAMA2019-11-091-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19039 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/ParenthesesAroundCondition in ↵Toshi MARUYAMA2019-10-221-2/+3
| | | | | | lib/redmine/helpers/gantt.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18837 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Lint/IneffectiveAccessModifier in ↵Toshi MARUYAMA2019-10-191-15/+18
| | | | | | lib/redmine/helpers/gantt.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18776 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/CaseIndentation in ↵Toshi MARUYAMA2019-10-171-3/+2
| | | | | | lib/redmine/helpers/gantt.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18727 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace RMagick with MiniMagick (#30492).Go MAEDA2019-08-141-102/+145
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18366 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove trailing whitespaces from lib (#31506).Go MAEDA2019-06-062-4/+4
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18231 e93f8b46-1217-0410-a6f0-8f06a7374b81