Dashboard is back

This commit is contained in:
2017-10-06 13:27:07 +02:00
parent 6c641c3632
commit 3d579da338
2 changed files with 3 additions and 30 deletions

View File

@ -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")