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