Added payment overview for administrators

This commit is contained in:
2018-10-18 10:15:06 +09:00
parent 5956b82d9d
commit 9ad99995c3
4 changed files with 58 additions and 0 deletions

20
pages/admin/payments.pixy Normal file
View File

@ -0,0 +1,20 @@
component GlobalPaymentHistory(payments []*arn.PayPalPayment)
AdminTabs
h1.page-title All Payments
table
thead
tr.mountable
th User
th Amount
th Currency
th.history-date Date
tbody
each payment in payments
tr.mountable
td
a(href=payment.User().Link())= payment.User().Nick
td= payment.Amount
td= payment.Currency
td.utc-date(data-date=payment.Created)