From 3d579da338c5ca501d2520400da57346cc42ea56 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 6 Oct 2017 13:27:07 +0200 Subject: [PATCH] Dashboard is back --- mixins/Sidebar.pixy | 5 ++--- pages/dashboard/dashboard.pixy | 28 +--------------------------- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/mixins/Sidebar.pixy b/mixins/Sidebar.pixy index 3d5132e2..bd54c66e 100644 --- a/mixins/Sidebar.pixy +++ b/mixins/Sidebar.pixy @@ -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") diff --git a/pages/dashboard/dashboard.pixy b/pages/dashboard/dashboard.pixy index 06692c32..37753eb9 100644 --- a/pages/dashboard/dashboard.pixy +++ b/pages/dashboard/dashboard.pixy @@ -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 \ No newline at end of file