diff options
author | Azul <azul@leap.se> | 2012-11-26 14:32:50 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-26 14:32:50 +0100 |
commit | bf74255d1530fe5852dc6e6c27ef975ce9aa8d3c (patch) | |
tree | 1a46627f7376dc038fb025981cc9b96236c43908 /users/app/views/sessions/_nav.html.haml | |
parent | 1ea7da1314a46a87512e4f3d7f99249883f4f12f (diff) |
added admin menu and user index action
Diffstat (limited to 'users/app/views/sessions/_nav.html.haml')
-rw-r--r-- | users/app/views/sessions/_nav.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/users/app/views/sessions/_nav.html.haml b/users/app/views/sessions/_nav.html.haml index dab865e..5306d0e 100644 --- a/users/app/views/sessions/_nav.html.haml +++ b/users/app/views/sessions/_nav.html.haml @@ -1,11 +1,11 @@ - if logged_in? + - if admin? + %li.dropdown + = render 'sessions/admin_nav' %li = link_to current_user.login, edit_user_path(current_user) %li = link_to t(:logout), logout_path - - if admin? - %li - = 'ADMIN' # obviously not like this - else %li = link_to t(:login), login_path |