summaryrefslogtreecommitdiffstats
path: root/lib/redmine/menu_manager.rb
Commit message (Collapse)AuthorAgeFilesLines
* Allows plugins to add custom SVG icons for menu items added by the plugin ↵Marius Balteanu2024-11-101-2/+3
| | | | | | | | (#23980). Patch by Takenori TAKAKI (user:takenory). git-svn-id: https://svn.redmine.org/redmine/trunk@23234 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Renames and improves methods provided by @IconsHelper@ (#23980).Marius Balteanu2024-10-191-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23145 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Layout/EndAlignment (#23980).Go MAEDA2024-09-071-4/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23030 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces icons in administration menu with SVG icons (#23980).Marius Balteanu2024-09-061-2/+10
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23028 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/RedundantSelfAssignment (#39887).Go MAEDA2024-05-131-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22827 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuntimeError on `reload!` in the Rails console (#38155).Go MAEDA2024-02-051-2/+2
| | | | | | | Patch by Thomas Löber (@tloeber). git-svn-id: https://svn.redmine.org/redmine/trunk@22681 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/ArgumentsForwarding (#39887).Go MAEDA2024-01-181-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22612 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/SuperWithArgsParentheses (#39887).Go MAEDA2023-12-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22530 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/RedundantCondition in lib/redmine/menu_manager.rb ↵Go MAEDA2022-06-141-5/+1
| | | | | | (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@21630 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent hash type URLs from being namespaced in MenuManager (#35076).Go MAEDA2021-04-151-2/+11
| | | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@20945 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to lib/redmine/menu_manager.rbToshi MARUYAMA2020-12-041-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20573 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of lib/redmine/menu_manager.rbToshi MARUYAMA2020-11-221-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20480 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of lib/redmine/menu_manager.rbToshi MARUYAMA2020-11-181-7/+22
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20416 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix a RuboCop offence Style/MethodDefParentheses (#32530).Go MAEDA2020-10-201-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20152 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in lib/redmine/menu_manager.rbToshi MARUYAMA2019-11-091-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19041 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/CaseIndentation in lib/redmine/menu_manager.rbToshi MARUYAMA2019-10-171-10/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18726 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable frozen_string_literal for some files under app and lib directory ↵Go MAEDA2019-03-161-1/+1
| | | | | | (#26561). git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove RDoc tags (#28943).Go MAEDA2018-06-081-1/+2
| | | | | | | Patch by Sho HASHIMOTO. git-svn-id: http://svn.redmine.org/redmine/trunk@17370 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a link to all projects in the jump drop down (#23310).Jean-Philippe Lang2017-01-101-2/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16172 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use the main menu for project related actions that support cross-project ↵Jean-Philippe Lang2016-11-191-3/+16
| | | | | | display. git-svn-id: http://svn.redmine.org/redmine/trunk@15983 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't skip condition if defined (#15880).Jean-Philippe Lang2016-06-111-2/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15507 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Introduce virtual MenuNodes (#15880).Jean-Philippe Lang2016-06-111-2/+17
| | | | | | | | They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Child nodes should only be rendered if the user is actually authorized to ↵Jean-Philippe Lang2016-05-081-2/+3
| | | | | | | | see them (#15880). Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15393 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Tab left/right buttons for project menu (#20632).Jean-Philippe Lang2016-01-161-1/+1
| | | | | | Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@15067 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support for named route in project menu and a new :permission option (#6426).Jean-Philippe Lang2014-12-141-6/+20
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13765 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2014-12-141-18/+21
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13764 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add missing tests for Redmine::MenuManager::Mapper#initialize.Jean-Baptiste Barth2013-05-031-0/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11772 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Check permissions before the extra condition for displaying a menu item ↵Jean-Philippe Lang2013-01-041-8/+5
| | | | | | | | (#12721). Patch by Daniel Ritz. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11112 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Missing html_safe.Jean-Philippe Lang2011-12-261-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8390 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2011-12-151-24/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8229 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2011-12-151-2/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8228 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed dependency with monkey-patched rubytree.Jean-Philippe Lang2011-12-141-92/+100
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8214 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use controller instead of instance variable.Jean-Philippe Lang2011-11-231-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7896 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Initialize @childrenHash.Jean-Philippe Lang2011-11-231-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7895 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: use String#html_safe for render_menu_node() at ↵Toshi MARUYAMA2011-08-201-1/+1
| | | | | | lib/redmine/menu_manager.rb. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6471 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from lib/redmine/menu_manager.rb.Toshi MARUYAMA2011-08-201-29/+29
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6468 e93f8b46-1217-0410-a6f0-8f06a7374b81