Improved shop

This commit is contained in:
2017-10-05 10:26:07 +02:00
parent 43317fd3da
commit 41155c8bff
8 changed files with 22 additions and 14 deletions

View File

@ -1,17 +1,17 @@
component Shop(user *arn.User, items []*arn.Item)
h1.page-title Shop
ShopTabs
ShopTabs(user)
.widgets.shop-items
each item in items
ShopItem(item)
component ShopTabs
component ShopTabs(user *arn.User)
.tabs
Tab("Shop", "shopping-cart", "/shop")
Tab("Inventory", "briefcase", "/inventory")
Tab("0", "diamond", "/charge")
Tab(strconv.Itoa(user.Balance), "diamond", "/charge")
component ShopItem(item *arn.Item)
.widget.shop-item.mountable