Menu mapper: add support for :before, :after and :last options to #push method and add #delete method.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1660 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-07-13 12:12:58 +00:00
parent c4eef6314e
commit 7b8a4fc28b
3 changed files with 61 additions and 8 deletions
+1 -1
View File
@@ -130,5 +130,5 @@ Redmine::MenuManager.map :project_menu do |menu|
menu.push :files, { :controller => 'projects', :action => 'list_files' }, :caption => :label_attachment_plural
menu.push :repository, { :controller => 'repositories', :action => 'show' },
:if => Proc.new { |p| p.repository && !p.repository.new_record? }
menu.push :settings, { :controller => 'projects', :action => 'settings' }
menu.push :settings, { :controller => 'projects', :action => 'settings' }, :last => true
end