From d01dc9550b91b5f3e5245e35887c8c2a2a0d0b82 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 28 Apr 2021 10:20:03 -0700 Subject: [PATCH] Show ticket IDs on the admin ticket page --- app/views/admin/tickets/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/tickets/show.html.haml b/app/views/admin/tickets/show.html.haml index a6b31ea4..dba94810 100644 --- a/app/views/admin/tickets/show.html.haml +++ b/app/views/admin/tickets/show.html.haml @@ -20,7 +20,7 @@ .col-md-12 %table.datatable %thead - %th # + %th ID %th Name %th Quantity %th E-Mail @@ -32,7 +32,7 @@ - purchases = buyer.ticket_purchases.where(ticket_id: @ticket.id) %tr %td - = index + 1 + = purchases.length == 1 ? purchases.first.id : purchases.map(&:id) %td = buyer.name %td