summaryrefslogtreecommitdiffstats
path: root/lib/redmine/menu_manager.rb
Commit message (Collapse)AuthorAgeFilesLines
* Hide the main menu div if there isn't any items for it. #3259Eric Davis2010-03-041-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3539 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix an IndexError if all the :last menu items are deleted from a menu. #4718Eric Davis2010-02-181-2/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3447 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updated menus from JPL's feedback.Eric Davis2009-11-251-7/+10
| | | | | | | | | | | | * Updated Mapper#push documentation * Renamed :parent_menu to :parent * Renamed the external API for :child_menus to :children. Internally it needs to stay :child_menus because Tree::TreeNode already defines a children method for another purpose #4250 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3092 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add support for unattached menus (generated dynamically)Eric Davis2009-11-251-12/+61
| | | | | | | | | | A MenuItem can define a :child_menus option with a Proc. When the menus are rendered, the Proc will be run and the resulting MenuItems will be added to the page as child menus #4250 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3091 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Converted Menus to a Tree structure to allow submenus.Eric Davis2009-11-251-38/+201
| | | | | | | | | | | | | | | | | * Bundle the rubytree gem * Patched RubyTree's TreeNode to add some additional methods. * Converted the menu rendering to walk the Tree of MenuItems to render each item * Added a menu option for :parent_menu to make this menu a child of the parent * Added a bunch of tests * Made MenuItem a subclass of Tree::TreeNode in order to use it's methods directly * Changed the exceptions in MenuItem#new to be ArgumentErrors instead of the generic RuntimeError #4250 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3090 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes menu translation.Jean-Philippe Lang2009-02-211-3/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2497 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-7/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Jump to the current tab when using the project quick-jump combo (#2364).Jean-Philippe Lang2008-12-301-2/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2210 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a css class on menu items in order to apply item specific styles (eg. ↵Jean-Philippe Lang2008-11-271-2/+14
| | | | | | icons). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2059 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Pluggable admin menu (patch #2031 by Yuki Sonoda with slight changes).Jean-Philippe Lang2008-11-111-3/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2022 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds #delete_menu_item to the plugin API (#2087).Jean-Philippe Lang2008-10-251-1/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1952 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: dependency on ruby 1.8.7 introduced in r1660 (#1643).Jean-Philippe Lang2008-07-201-2/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1679 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent blank menu caption.Jean-Philippe Lang2008-07-131-1/+3
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1663 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Menu mapper: add support for :before, :after and :last options to #push ↵Jean-Philippe Lang2008-07-131-7/+31
| | | | | | method and add #delete method. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1660 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Menu item caption can be a Proc.Jean-Philippe Lang2008-07-131-8/+16
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1659 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes #780: Redmine fails to start with a const_missing error on ↵Jean-Philippe Lang2008-03-051-0/+2
| | | | | | Redmine::MenuManager::MenuItem::GLoc (occurs when a Redmine plugin is loaded before GLoc). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1187 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Menus items:Jean-Philippe Lang2008-02-221-2/+7
| | | | | | | * fixed broken translation when a plugin is installed (closes #649) * small fix to the plugin API: options parameter added to Redmine::Plugin#menu git-svn-id: http://redmine.rubyforge.org/svn/trunk@1172 e93f8b46-1217-0410-a6f0-8f06a7374b81
* The following menus can now be extended by plugins: top_menu, account_menu, ↵Jean-Philippe Lang2008-02-121-11/+25
| | | | | | | | application_menu (empty by default). Sligth layout change: links in the top menu are now li elements. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1137 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added a 'New issue' link in the main menu (accesskey 7).Jean-Philippe Lang2008-01-201-2/+8
| | | | | | The drop-down lists to add an issue on the project overview and the issue list are removed. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1081 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Highlight the current item of the main menu.Jean-Philippe Lang2008-01-191-1/+59
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1076 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added project module concept.Jean-Philippe Lang2007-09-141-2/+2
| | | | | | | | | | A project module (eg. issue tracking, news, wiki,...) is a set of permissions that can enabled/disabled at project level. For each project, modules can be enabled on the project settings view ('Modules' tab). This requires a specific permission: 'Select project modules' (if this permission is turned off, only Redmine administrators can choose which modules a project uses). When applying this migration, all modules are enabled for all existing projects. git-svn-id: http://redmine.rubyforge.org/svn/trunk@725 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged 0.6 branch into trunk.Jean-Philippe Lang2007-08-291-0/+61
Permissions management was rewritten. Some permissions can now be specifically defined for non member and anonymous users. This migration: * is irreversible (please, don't forget to *backup* your database before upgrading) * resets role's permissions (go to "Admin -> Roles & Permissions" to set them after upgrading) git-svn-id: http://redmine.rubyforge.org/svn/trunk@674 e93f8b46-1217-0410-a6f0-8f06a7374b81