From f3996a9bfff7fa55516352eca685be35141e4e0e Mon Sep 17 00:00:00 2001 From: raluka Date: Wed, 16 Sep 2015 12:23:45 +0200 Subject: [PATCH] added extra condition for view Create Conference link --- app/views/layouts/_user_menu.html.haml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/_user_menu.html.haml b/app/views/layouts/_user_menu.html.haml index da55935a..1764d9d0 100644 --- a/app/views/layouts/_user_menu.html.haml +++ b/app/views/layouts/_user_menu.html.haml @@ -24,11 +24,12 @@ - if can? :access, Admin %li.divider %li - = link_to(admin_conference_index_path()) do - - if Conference.any? + - if Conference.any? + = link_to(admin_conference_index_path()) do %span.fa.fa-home - Administration - - else + Administration + - if can? :create, Conference + =link_to(new_admin_conference_path) do %span.fa.fa-plus Create Conference -if @conference and @conference.id and can? :show, @conference