Improved shop
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user