Updated sidebar interface

This commit is contained in:
2018-02-28 12:12:58 +01:00
parent b77229595e
commit 84783c871c
3 changed files with 30 additions and 1 deletions

View File

@ -6,6 +6,13 @@ component Sidebar(user *arn.User)
Avatar(user)
else
img.user-image.lazy(src=utils.EmptyImage(), data-src="/images/brand/64.png", data-webp="true", alt="Anime Notifier")
if user != nil
a.badge.left-badge.ajax(href="/settings")
RawIcon("cog")
a.badge.right-badge.ajax(href="/notifications")
RawIcon("bell")
//- Sidebar buttons
if user != nil
@ -22,7 +29,7 @@ component Sidebar(user *arn.User)
if user != nil
SidebarButton("Shop", "/shop", "shopping-cart")
SidebarButton("Settings", "/settings", "cog")
//- SidebarButton("Settings", "/settings", "cog")
//- Disabled:
//- SidebarButton("Dash", "/dashboard", "tachometer")