From dd159c555594bbb47b688280606b79d1afcfabd6 Mon Sep 17 00:00:00 2001 From: Aditya Prakash Date: Sun, 13 Mar 2016 18:51:08 +0530 Subject: [PATCH] Fix edit and schedule buttons on proposal show page --- app/views/proposal/show.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/proposal/show.html.haml b/app/views/proposal/show.html.haml index d14d5acb..909de4c2 100644 --- a/app/views/proposal/show.html.haml +++ b/app/views/proposal/show.html.haml @@ -7,9 +7,10 @@ %br %small = @event.subtitle - = link_to "Schedule", schedule_conference_path(@conference.short_title), :class =>"btn btn-success pull-right" + - if can? :schedule, @conference + = link_to "Schedule", schedule_conference_path(@conference.short_title), :class =>"btn btn-success pull-right" - if can? :edit, @event - = link_to "Edit", edit_admin_conference_program_event_path(@conference.short_title, @event), :class => "btn btn-mini btn-primary pull-right" + = link_to "Edit", edit_conference_program_proposal_path(@conference.short_title, @event), :class => "btn btn-mini btn-primary pull-right" .row .col-md-3 %p