From a9814146ffe9de2097dac6171b4215876c64cacb Mon Sep 17 00:00:00 2001 From: Chrisbr Date: Fri, 23 May 2014 14:30:59 +0200 Subject: [PATCH] Removes admin from dropdown --- app/views/layouts/_user_menu.html.haml | 31 ++++++++------------------ 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/app/views/layouts/_user_menu.html.haml b/app/views/layouts/_user_menu.html.haml index e484e3cb..bfcbfa6f 100644 --- a/app/views/layouts/_user_menu.html.haml +++ b/app/views/layouts/_user_menu.html.haml @@ -13,26 +13,13 @@ Sign out -if has_role?(current_user, "admin") || has_role?(current_user, "organizer") %li.divider - %li.dropdown-header - Conferences - - @conferences.each do |conference| %li - = link_to(admin_conference_path(conference.short_title)) do - %span.glyphicon.glyphicon-cog - Manage - = conference.short_title - %li - = link_to(new_admin_conference_path) do - %span.glyphicon.glyphicon-plus - New Conference - %li.divider - %li.dropdown-header - People - %li - = link_to(admin_users_path) do - %span.glyphicon.glyphicon-user - Users - %li - = link_to(admin_people_path) do - %span.glyphicon.glyphicon-star-empty - People + = link_to(admin_conference_index_path()) do + %span.glyphicon.glyphicon-home + Administration + -if @conference and @conference.id + %li + = link_to(admin_conference_path(@conference.short_title)) do + %span.glyphicon.glyphicon-cog + Manage + = @conference.short_title