added link to Kontrollzentrum in the navbar for admins

This commit is contained in:
nilsding 2014-12-10 18:23:25 +01:00
parent 0eb5e8104b
commit 06112b0cce
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@
%li= link_to "View profile", show_user_profile_path(current_user.screen_name) %li= link_to "View profile", show_user_profile_path(current_user.screen_name)
%li= link_to "Settings", edit_user_registration_path %li= link_to "Settings", edit_user_registration_path
%li.divider %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 %li= link_to "Logout", destroy_user_session_path, method: :delete
- else - else
%ul.nav.navbar-nav.navbar-right %ul.nav.navbar-nav.navbar-right