From fdd5b6cb95eb3175a3fa885099d910eb02fdf6c6 Mon Sep 17 00:00:00 2001 From: Stella Date: Fri, 2 May 2014 21:33:43 +0300 Subject: [PATCH] Add 'edit button' in proposal show --- app/views/proposal/show.html.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/proposal/show.html.haml b/app/views/proposal/show.html.haml index 02173839..0d9e83a1 100644 --- a/app/views/proposal/show.html.haml +++ b/app/views/proposal/show.html.haml @@ -6,6 +6,8 @@ %br %small = @event.subtitle + - if has_role?(current_user, "admin") + = link_to "Edit", edit_admin_conference_event_path(@conference.short_title, @event), :class => "btn btn-mini btn-primary pull-right" .row .col-md-3 %p