diff --git a/app/views/layouts/_topbar.slim b/app/views/layouts/_topbar.slim index afcdccf..ff49b59 100644 --- a/app/views/layouts/_topbar.slim +++ b/app/views/layouts/_topbar.slim @@ -32,14 +32,14 @@ nav.top-bar span.badge.secondary = @current_users_screenshots.count // TODO: Check correct classes in Zurb/Foundation for top bar! - - if user_signed_in? + - if user_signed_in? and current_user.is_admin? li a href='#' Admin - ul.menu.vertical - li = link_to 'Moderate', moderate_path - li = link_to 'Logs', logs_path - li + / ul.menu.vertical + / li = link_to 'Moderate', moderate_path + / li = link_to 'Logs', logs_path + li class=('active' if controller_name=='my') - if user_signed_in? - = link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete + = link_to "My", my_profile_path - else = link_to 'Login', new_user_session_path