]> source.dussan.org Git - redmine.git/commit
Add support for unattached menus (generated dynamically)
authorEric Davis <edavis@littlestreamsoftware.com>
Wed, 25 Nov 2009 05:36:50 +0000 (05:36 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Wed, 25 Nov 2009 05:36:50 +0000 (05:36 +0000)
commitb0999e3764f0554d40d243f273f23fe53e164066
tree6ad211b83516bf9db17d7bf84af8794875a760e9
parent1f06cf889990d9640f7160c4969ed074fb68a7ca
Add support for unattached menus (generated dynamically)

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
lib/redmine/menu_manager.rb
test/unit/lib/redmine/menu_manager/menu_helper_test.rb
test/unit/lib/redmine/menu_manager/menu_item_test.rb
test/unit/lib/redmine/menu_manager_test.rb