Show ticket IDs on the admin ticket page
This commit is contained in:
parent
7ee69bc172
commit
d01dc9550b
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue