28 lines
738 B
Plaintext
Raw Normal View History

2017-10-06 10:44:55 +00:00
component PurchaseHistory(purchases []*arn.Purchase, user *arn.User)
ShopTabs(user)
h1.page-title Purchase History
2017-11-05 05:56:09 +00:00
if len(purchases) == 0
2017-11-05 06:29:13 +00:00
p.text-center.mountable You haven't bought any items yet.
2017-11-05 05:56:09 +00:00
else
table
thead
tr.mountable
th Icon
th Item
th.history-quantity Quantity
th.history-price Price
th.history-date Date
tbody
each purchase in purchases
2017-11-05 08:32:46 +00:00
tr.shop-history-item.mountable(data-item-id=purchase.ItemID)
2017-11-05 05:56:09 +00:00
PurchaseInfo(purchase)
2017-10-07 21:24:09 +00:00
component PurchaseInfo(purchase *arn.Purchase)
2018-04-08 20:10:45 +00:00
td.shop-item-icon
2017-10-07 21:24:09 +00:00
Icon(purchase.Item().Icon)
td= purchase.Item().Name
td.history-quantity= purchase.Quantity
td.history-price= purchase.Price
td.history-date.utc-date(data-date=purchase.Date)