mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 11:37:47 +01:00
added link to Kontrollzentrum in the navbar for admins
This commit is contained in:
parent
0eb5e8104b
commit
06112b0cce
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@
|
|||
%li= link_to "View profile", show_user_profile_path(current_user.screen_name)
|
||||
%li= link_to "Settings", edit_user_registration_path
|
||||
%li.divider
|
||||
- if current_user.admin?
|
||||
%li= link_to "Kontrollzentrum", rails_admin_path
|
||||
%li.divider
|
||||
%li= link_to "Logout", destroy_user_session_path, method: :delete
|
||||
- else
|
||||
%ul.nav.navbar-nav.navbar-right
|
||||
|
|
Loading…
Reference in a new issue