Started working on the shop

This commit is contained in:
2017-10-03 15:26:29 +02:00
parent b6d6ce92da
commit aec23d0b6e
7 changed files with 106 additions and 4 deletions

View File

@ -20,12 +20,10 @@ component Sidebar(user *arn.User)
//- SidebarButton("Search", "/search", "search")
if user != nil
SidebarButton("Shop", "/shop", "shopping-cart")
SidebarButton("Statistics", "/statistics", "pie-chart")
SidebarButton("Settings", "/settings", "cog")
if user.Role == "admin" || user.Role == "editor"
SidebarButton("Admin", "/admin", "wrench")
.spacer
.sidebar-link(aria-label="Search")
@ -33,6 +31,9 @@ component Sidebar(user *arn.User)
Icon("search")
FuzzySearch
if user != nil && (user.Role == "admin" || user.Role == "editor")
SidebarButton("Admin", "/admin", "wrench")
SidebarButton("Help", "/thread/I3MMiOtzR", "question-circle")
if user != nil