Show ticket IDs on the admin ticket page

This commit is contained in:
Michael Ball 2021-04-28 10:20:03 -07:00
parent 7ee69bc172
commit d01dc9550b

View file

@ -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