Dashboard is back
This commit is contained in:
parent
6c641c3632
commit
3d579da338
@ -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")
|
||||
|
||||
|
@ -95,30 +95,4 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound
|
||||
Icon("address-card")
|
||||
span ...
|
||||
|
||||
//- .widget.mountable
|
||||
//- h3.widget-title Follow
|
||||
|
||||
//- a.widget-element(href="https://discord.gg/0kimAmMCeXGXuzNF", target="_blank", rel="noopener")
|
||||
//- .widget-element-text
|
||||
//- Icon("microphone")
|
||||
//- span Discord
|
||||
|
||||
//- a.widget-element(href="https://www.facebook.com/animenotifier", target="_blank", rel="noopener")
|
||||
//- .widget-element-text
|
||||
//- Icon("facebook")
|
||||
//- span Facebook
|
||||
|
||||
//- a.widget-element(href="https://twitter.com/animenotifier", target="_blank", rel="noopener")
|
||||
//- .widget-element-text
|
||||
//- Icon("twitter")
|
||||
//- span Twitter
|
||||
|
||||
//- a.widget-element(href="https://plus.google.com/+AnimeReleaseNotifierOfficial", target="_blank", rel="noopener")
|
||||
//- .widget-element-text
|
||||
//- Icon("google-plus")
|
||||
//- span Google+
|
||||
|
||||
//- a.widget-element(href="https://github.com/animenotifier/notify.moe", target="_blank", rel="noopener")
|
||||
//- .widget-element-text
|
||||
//- Icon("github")
|
||||
//- span GitHub
|
||||
Footer
|
Loading…
Reference in New Issue
Block a user