This commit is contained in:
2017-11-05 06:56:09 +01:00
parent ce03cadc98
commit 239ef24b5b
9 changed files with 46 additions and 32 deletions

View File

@ -3,18 +3,21 @@ component PurchaseHistory(purchases []*arn.Purchase, user *arn.User)
h1.page-title Purchase History
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-item.mountable(data-item-id=purchase.ItemID)
PurchaseInfo(purchase)
if len(purchases) == 0
p.text-center.mountable You haven't bought anything 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-item.mountable(data-item-id=purchase.ItemID)
PurchaseInfo(purchase)
component PurchaseInfo(purchase *arn.Purchase)
td.item-icon