Implemented editor score

This commit is contained in:
2018-03-09 22:33:08 +01:00
parent bf5ee9798b
commit 0127ea0f1c
3 changed files with 35 additions and 11 deletions

View File

@ -35,6 +35,14 @@ component Sidebar(user *arn.User)
if arn.IsDevelopment()
SidebarButton("Groups", "/groups", "users")
if user != nil && (user.Role == "editor" || user.Role == "admin")
if user.Role == "admin"
SidebarButton("Admin", "/admin", "wrench")
if (user.Role == "editor" || user.Role == "admin")
SidebarButton("Editor", "/editor", "pencil")
SidebarButton("Log", "/log", "list")
//- Disabled:
@ -54,13 +62,6 @@ component Sidebar(user *arn.User)
Icon("search")
FuzzySearch
if user != nil
if user.Role == "admin"
SidebarButton("Admin", "/admin", "wrench")
if user.Role == "editor"
SidebarButton("Editor", "/editor", "pencil")
a.sidebar-link.action(href="#", data-action="toggleTheme", data-trigger="click")
.sidebar-button
Icon("paint-brush")