|
|
|
@ -67,18 +67,18 @@ Redmine::MenuManager.map :top_menu do |menu| |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
Redmine::MenuManager.map :account_menu do |menu| |
|
|
|
|
menu.push :administration, |
|
|
|
|
{ controller: '/admin', action: 'projects' }, |
|
|
|
|
menu.push :my_page, |
|
|
|
|
{ controller: '/my', action: 'page' }, |
|
|
|
|
html: { class: 'hidden-for-mobile' }, |
|
|
|
|
if: Proc.new { User.current.admin? } |
|
|
|
|
if: Proc.new { User.current.logged? } |
|
|
|
|
menu.push :my_account, |
|
|
|
|
{ controller: '/my', action: 'account' }, |
|
|
|
|
html: { class: 'hidden-for-mobile' }, |
|
|
|
|
if: Proc.new { User.current.logged? } |
|
|
|
|
menu.push :my_page, |
|
|
|
|
{ controller: '/my', action: 'page' }, |
|
|
|
|
menu.push :administration, |
|
|
|
|
{ controller: '/admin', action: 'projects' }, |
|
|
|
|
html: { class: 'hidden-for-mobile' }, |
|
|
|
|
if: Proc.new { User.current.logged? } |
|
|
|
|
if: Proc.new { User.current.admin? } |
|
|
|
|
menu.push :logout, :signout_path, |
|
|
|
|
if: Proc.new { User.current.logged? } |
|
|
|
|
end |
|
|
|
|