185 |
185 |
|
186 |
186 |
Redmine::MenuManager.map :top_menu do |menu|
|
187 |
187 |
menu.push :home, :home_path
|
188 |
|
menu.push :my_page, { :controller => 'my', :action => 'page' }, :if => Proc.new { User.current.logged? }
|
189 |
|
menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural
|
190 |
|
menu.push :administration, { :controller => 'admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true
|
|
188 |
menu.push :my_page, { :controller => '/my', :action => 'page' }, :if => Proc.new { User.current.logged? }
|
|
189 |
menu.push :projects, { :controller => '/projects', :action => 'index' }, :caption => :label_project_plural
|
|
190 |
menu.push :administration, { :controller => '/admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true
|
191 |
191 |
menu.push :help, Redmine::Info.help_url, :last => true
|
192 |
192 |
end
|
193 |
193 |
|
194 |
194 |
Redmine::MenuManager.map :account_menu do |menu|
|
195 |
195 |
menu.push :login, :signin_path, :if => Proc.new { !User.current.logged? }
|
196 |
196 |
menu.push :register, :register_path, :if => Proc.new { !User.current.logged? && Setting.self_registration? }
|
197 |
|
menu.push :my_account, { :controller => 'my', :action => 'account' }, :if => Proc.new { User.current.logged? }
|
|
197 |
menu.push :my_account, { :controller => '/my', :action => 'account' }, :if => Proc.new { User.current.logged? }
|
198 |
198 |
menu.push :logout, :signout_path, :html => {:method => 'post'}, :if => Proc.new { User.current.logged? }
|
199 |
199 |
end
|
200 |
200 |
|