]> source.dussan.org Git - redmine.git/commitdiff
Admin and Help links at the end of top menu.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 Jul 2008 12:25:01 +0000 (12:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 Jul 2008 12:25:01 +0000 (12:25 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1661 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine.rb

index 6db32340fbc7a4cdf693381242a3fbf2de866c5d..22b60e949254eb6d3027ee3db77d9742881800d0 100644 (file)
@@ -98,8 +98,8 @@ Redmine::MenuManager.map :top_menu do |menu|
   menu.push :home, :home_path, :html => { :class => 'home' }
   menu.push :my_page, { :controller => 'my', :action => 'page' }, :html => { :class => 'mypage' }, :if => Proc.new { User.current.logged? }
   menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural, :html => { :class => 'projects' }
-  menu.push :administration, { :controller => 'admin', :action => 'index' }, :html => { :class => 'admin' }, :if => Proc.new { User.current.admin? }
-  menu.push :help, Redmine::Info.help_url, :html => { :class => 'help' }
+  menu.push :administration, { :controller => 'admin', :action => 'index' }, :html => { :class => 'admin' }, :if => Proc.new { User.current.admin? }, :last => true
+  menu.push :help, Redmine::Info.help_url, :html => { :class => 'help' }, :last => true
 end
 
 Redmine::MenuManager.map :account_menu do |menu|