##// END OF EJS Templates
Fixed: Home, Logout, Login links are absolute (#1122, #1145)....
Jean-Philippe Lang -
r1369:4525a7429aec
parent child
Show More
@@ -94,7 +94,7 Redmine::AccessControl.map do |map|
94 94 end
95 95
96 96 Redmine::MenuManager.map :top_menu do |menu|
97 menu.push :home, :home_url, :html => { :class => 'home' }
97 menu.push :home, :home_path, :html => { :class => 'home' }
98 98 menu.push :my_page, { :controller => 'my', :action => 'page' }, :html => { :class => 'mypage' }, :if => Proc.new { User.current.logged? }
99 99 menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural, :html => { :class => 'projects' }
100 100 menu.push :administration, { :controller => 'admin', :action => 'index' }, :html => { :class => 'admin' }, :if => Proc.new { User.current.admin? }
@@ -102,10 +102,10 Redmine::MenuManager.map :top_menu do |menu|
102 102 end
103 103
104 104 Redmine::MenuManager.map :account_menu do |menu|
105 menu.push :login, :signin_url, :html => { :class => 'login' }, :if => Proc.new { !User.current.logged? }
105 menu.push :login, :signin_path, :html => { :class => 'login' }, :if => Proc.new { !User.current.logged? }
106 106 menu.push :register, { :controller => 'account', :action => 'register' }, :html => { :class => 'register' }, :if => Proc.new { !User.current.logged? && Setting.self_registration? }
107 107 menu.push :my_account, { :controller => 'my', :action => 'account' }, :html => { :class => 'myaccount' }, :if => Proc.new { User.current.logged? }
108 menu.push :logout, :signout_url, :html => { :class => 'logout' }, :if => Proc.new { User.current.logged? }
108 menu.push :logout, :signout_path, :html => { :class => 'logout' }, :if => Proc.new { User.current.logged? }
109 109 end
110 110
111 111 Redmine::MenuManager.map :application_menu do |menu|
General Comments 0
You need to be logged in to leave comments. Login now