From 00c3c9da3a261cd0b01ebcec88282567ccd60b1f Mon Sep 17 00:00:00 2001 From: Siddhant Bajaj Date: Sat, 3 Jun 2017 13:23:51 +0530 Subject: [PATCH] Added Download Ticket button in the user registration show page --- app/views/conference_registrations/show.html.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/conference_registrations/show.html.haml b/app/views/conference_registrations/show.html.haml index c510a263..de98356f 100644 --- a/app/views/conference_registrations/show.html.haml +++ b/app/views/conference_registrations/show.html.haml @@ -104,6 +104,7 @@ = humanized_money tickets.first.price %br - if @tickets.any? + = link_to 'Download Ticket', conference_conference_registration_path(@conference.short_title, format: :pdf), class: 'button btn btn-default btn-info' = link_to 'Get more tickets', conference_tickets_path(@conference.short_title), class: "btn btn-default" - else You haven't bought any tickets.