18 lines
678 B
Plaintext
Raw Normal View History

2017-10-05 08:26:07 +00:00
component Inventory(inventory *arn.Inventory, viewUser *arn.User, user *arn.User)
ShopTabs(user)
2017-10-05 11:48:16 +00:00
h1.page-title Inventory
2017-10-05 07:39:37 +00:00
.inventory(data-api="/api/inventory/" + viewUser.ID)
2017-10-04 11:39:59 +00:00
for index, slot := range inventory.Slots
if slot.ItemID == ""
.inventory-slot.mountable(draggable="false", data-index=index)
else
2017-10-05 07:39:37 +00:00
.inventory-slot.mountable(title=slot.Item().Name, draggable="true", data-index=index, data-item-id=slot.ItemID, data-consumable=slot.Item().Consumable)
2017-10-06 10:44:55 +00:00
.item-icon
Icon(slot.Item().Icon)
2017-10-04 11:39:59 +00:00
if slot.Quantity > 1
2017-10-06 06:44:29 +00:00
.inventory-slot-quantity= slot.Quantity
.footer.text-center.mountable
p You can consume items by double-clicking them.