29 lines
849 B
Plaintext
Raw Normal View History

2017-07-20 00:54:53 +00:00
component Sidebar(user *arn.User)
.user-image-container
if user != nil
Avatar(user)
else
img.user-image.lazy(data-src="/images/brand/64", alt="Anime Notifier")
SidebarButton("Home", "/", "home")
SidebarButton("Forum", "/forum", "comment")
SidebarButton("Explore", "/explore", "th")
2017-07-22 13:04:54 +00:00
SidebarButton("Artworks", "/artworks", "paint-brush")
2017-07-20 00:54:53 +00:00
SidebarButton("Soundtracks", "/soundtracks", "headphones")
2017-07-22 13:04:54 +00:00
SidebarButton("AMVs", "/amvs", "video-camera")
2017-07-20 00:54:53 +00:00
SidebarButton("Users", "/users", "globe")
if user != nil
if user.Role != ""
SidebarButton("Statistics", "/statistics", "pie-chart")
SidebarButton("Settings", "/settings", "cog")
2017-07-22 13:04:54 +00:00
.spacer
2017-07-23 03:57:33 +00:00
SidebarButton("Help", "/thread/I3MMiOtzR", "question-circle")
2017-07-20 00:54:53 +00:00
if user != nil
SidebarButtonNoAJAX("Logout", "/logout", "sign-out")
else
SidebarButton("Login", "/login", "sign-in")