Added help to menu
This commit is contained in:
parent
983c9f4ed6
commit
43a58b8f46
@ -31,43 +31,3 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openG
|
||||
if user != nil
|
||||
#user(data-id=user.ID)
|
||||
script(src="/scripts")
|
||||
|
||||
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")
|
||||
SidebarButton("Soundtracks", "/soundtracks", "headphones")
|
||||
SidebarButton("Users", "/users", "globe")
|
||||
|
||||
if user != nil
|
||||
if user.Role != ""
|
||||
SidebarButton("Statistics", "/statistics", "pie-chart")
|
||||
|
||||
SidebarButton("Settings", "/settings", "cog")
|
||||
SidebarButtonNoAJAX("Logout", "/logout", "sign-out")
|
||||
else
|
||||
SidebarButton("Login", "/login", "sign-in")
|
||||
|
||||
component StatusMessage
|
||||
#status-message.fade.fade-out
|
||||
#status-message-text
|
||||
a.status-message-action.action(href="#", data-trigger="click", data-action="closeStatusMessage", aria-label="Close status message")
|
||||
RawIcon("close")
|
||||
|
||||
component LoadingAnimation
|
||||
#loading.sk-cube-grid.fade
|
||||
.sk-cube.hide
|
||||
.sk-cube
|
||||
.sk-cube.hide
|
||||
.sk-cube
|
||||
.sk-cube.sk-cube-center
|
||||
.sk-cube
|
||||
.sk-cube.hide
|
||||
.sk-cube
|
||||
.sk-cube.hide
|
11
mixins/LoadingAnimation.pixy
Normal file
11
mixins/LoadingAnimation.pixy
Normal file
@ -0,0 +1,11 @@
|
||||
component LoadingAnimation
|
||||
#loading.sk-cube-grid.fade
|
||||
.sk-cube.hide
|
||||
.sk-cube
|
||||
.sk-cube.hide
|
||||
.sk-cube
|
||||
.sk-cube.sk-cube-center
|
||||
.sk-cube
|
||||
.sk-cube.hide
|
||||
.sk-cube
|
||||
.sk-cube.hide
|
25
mixins/Sidebar.pixy
Normal file
25
mixins/Sidebar.pixy
Normal file
@ -0,0 +1,25 @@
|
||||
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")
|
||||
SidebarButton("Soundtracks", "/soundtracks", "headphones")
|
||||
SidebarButton("Users", "/users", "globe")
|
||||
|
||||
if user != nil
|
||||
if user.Role != ""
|
||||
SidebarButton("Statistics", "/statistics", "pie-chart")
|
||||
|
||||
SidebarButton("Settings", "/settings", "cog")
|
||||
|
||||
SidebarButton("Help", "/thread/I3MMiOtzR", "question")
|
||||
|
||||
if user != nil
|
||||
SidebarButtonNoAJAX("Logout", "/logout", "sign-out")
|
||||
else
|
||||
SidebarButton("Login", "/login", "sign-in")
|
5
mixins/StatusMessage.pixy
Normal file
5
mixins/StatusMessage.pixy
Normal file
@ -0,0 +1,5 @@
|
||||
component StatusMessage
|
||||
#status-message.fade.fade-out
|
||||
#status-message-text
|
||||
a.status-message-action.action(href="#", data-trigger="click", data-action="closeStatusMessage", aria-label="Close status message")
|
||||
RawIcon("close")
|
Loading…
Reference in New Issue
Block a user