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 .col-md-12
%table.datatable %table.datatable
%thead %thead
%th # %th ID
%th Name %th Name
%th Quantity %th Quantity
%th E-Mail %th E-Mail
@ -32,7 +32,7 @@
- purchases = buyer.ticket_purchases.where(ticket_id: @ticket.id) - purchases = buyer.ticket_purchases.where(ticket_id: @ticket.id)
%tr %tr
%td %td
= index + 1 = purchases.length == 1 ? purchases.first.id : purchases.map(&:id)
%td %td
= buyer.name = buyer.name
%td %td