notify.moe/pages/shop/history.pixy
2021-11-23 21:57:43 +09:00

30 lines
745 B
Plaintext

component PurchaseHistory(purchases []*arn.Purchase, user *arn.User)
ShopTabs(user)
h1.page-title Purchase History
if len(purchases) == 0
p.text-center.mountable You haven't bought any items yet.
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
tr.shop-history-item.mountable(data-item-id=purchase.ItemID)
PurchaseInfo(purchase)
component PurchaseInfo(purchase *arn.Purchase)
td.shop-item-icon
Icon(purchase.Item().Icon)
td= purchase.Item().Name
td.history-quantity= purchase.Quantity
td.history-price= purchase.Price
td.history-date
time.utc-date(datetime=purchase.Date)