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
|
.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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue