From 09ec8565d9778c84317ab2e4134dc1f28ff27e55 Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Wed, 14 Sep 2016 19:40:43 +0530 Subject: [PATCH] admin/tickets: add column for quantity --- app/views/admin/tickets/show.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/admin/tickets/show.html.haml b/app/views/admin/tickets/show.html.haml index ca7b8aeb..9f86a4a7 100644 --- a/app/views/admin/tickets/show.html.haml +++ b/app/views/admin/tickets/show.html.haml @@ -15,6 +15,7 @@ %thead %th # %th Name + %th Quantity %th E-Mail %th Affiliation %th Paid @@ -25,8 +26,8 @@ = index + 1 %td = buyer.name - %span.label.label-success - = buyer.ticket_purchases.where(ticket_id: @ticket.id).sum('quantity') + %td + = buyer.ticket_purchases.where(ticket_id: @ticket.id).sum('quantity') %td = buyer.email %td