Dashboard is back
This commit is contained in:
@ -7,6 +7,7 @@ component Sidebar(user *arn.User)
|
||||
|
||||
if user != nil
|
||||
SidebarButton("Home", "/animelist/watching", "home")
|
||||
SidebarButton("Dash", "/dashboard", "tachometer")
|
||||
else
|
||||
SidebarButton("Home", "/", "home")
|
||||
|
||||
@ -20,9 +21,7 @@ component Sidebar(user *arn.User)
|
||||
//- SidebarButton("Search", "/search", "search")
|
||||
|
||||
if user != nil
|
||||
if user.Role == "admin" || user.Role == "editor"
|
||||
SidebarButton("Shop", "/shop", "shopping-cart")
|
||||
|
||||
SidebarButton("Shop", "/shop", "shopping-cart")
|
||||
SidebarButton("Statistics", "/statistics", "pie-chart")
|
||||
SidebarButton("Settings", "/settings", "cog")
|
||||
|
||||
|
Reference in New Issue
Block a user