87 lines
2.6 KiB
Plaintext
Raw Normal View History

2017-06-15 21:03:55 +00:00
component Navigation(user *arn.User)
if user == nil
LoggedOutMenu
else
2017-06-18 15:16:40 +00:00
LoggedInMenu(user)
2017-06-15 21:03:55 +00:00
component LoggedOutMenu
2017-06-20 19:37:52 +00:00
nav#navigation.logged-out
2017-07-19 15:12:06 +00:00
#sidebar-toggle.navigation-link.action(data-action="toggleSidebar", data-trigger="click", aria-label="Menu", title="Menu")
2017-07-19 14:56:02 +00:00
.navigation-button
Icon("bars")
span.navigation-text Menu
//- NavigationButton("Explore", "/explore", "th")
//- NavigationButton("Forum", "/forum", "comment")
2017-06-21 00:51:55 +00:00
FuzzySearch
2017-07-19 14:56:02 +00:00
//- .extra-navigation
//- NavigationButton("Users", "/users", "globe")
2017-06-21 01:05:34 +00:00
2017-07-19 14:56:02 +00:00
//- NavigationButton("Soundtracks", "/soundtracks", "headphones")
2017-07-07 10:52:24 +00:00
2017-06-21 01:05:34 +00:00
NavigationButton("Login", "/login", "sign-in")
2017-06-15 21:03:55 +00:00
2017-06-18 15:16:40 +00:00
component LoggedInMenu(user *arn.User)
2017-06-20 19:37:52 +00:00
nav#navigation.logged-in
2017-06-25 13:04:35 +00:00
.extension-navigation
NavigationButton("Watching list", "/extension/embed", "home")
2017-07-19 15:12:06 +00:00
#sidebar-toggle.navigation-link.action(data-action="toggleSidebar", data-trigger="click", aria-label="Menu", title="Menu")
2017-07-19 14:56:02 +00:00
.navigation-button
Icon("bars")
span.navigation-text Menu
2017-07-22 13:04:54 +00:00
//- .extra-navigation
//- NavigationButton("Profile", "/+", "user")
2017-07-19 14:56:02 +00:00
2017-07-22 13:04:54 +00:00
//- .extra-navigation
//- NavigationButton("Forum", "/forum", "comment")
2017-07-01 16:34:30 +00:00
2017-07-21 08:10:48 +00:00
//- .extra-navigation
//- NavigationButton("Soundtracks", "/soundtracks", "headphones")
2017-06-20 19:37:52 +00:00
FuzzySearch
2017-06-18 15:16:40 +00:00
2017-07-22 13:04:54 +00:00
//- .extra-navigation
//- NavigationButton("Users", "/users", "globe")
2017-07-07 10:52:24 +00:00
2017-07-22 13:04:54 +00:00
//- .extra-navigation
//- NavigationButton("Explore", "/explore", "th")
2017-07-07 10:52:24 +00:00
2017-07-07 12:40:20 +00:00
//- .extra-navigation
//- NavigationButton("Statistics", "/statistics", "pie-chart")
2017-06-21 01:05:34 +00:00
2017-07-22 13:04:54 +00:00
//- .hide-landscape
//- NavigationButton("Settings", "/settings", "cog")
2017-06-27 11:06:19 +00:00
2017-07-21 08:10:48 +00:00
//- .extra-navigation.hide-landscape
//- NavigationButtonNoAJAX("Logout", "/logout", "sign-out")
2017-06-20 19:37:52 +00:00
component FuzzySearch
2017-06-24 14:41:22 +00:00
input#search.action(data-action="search", data-trigger="input", type="text", placeholder="Search...", title="Shortcut: F")
2017-06-20 19:37:52 +00:00
component NavigationButton(name string, target string, icon string)
2017-06-18 15:16:40 +00:00
a.navigation-link.ajax(href=target, aria-label=name, title=name)
.navigation-button
Icon(icon)
span.navigation-text= name
2017-07-19 14:56:02 +00:00
component SidebarButton(name string, target string, icon string)
2017-07-22 14:31:25 +00:00
a.sidebar-link.ajax(href=target, aria-label=name, data-bubble="true")
2017-07-19 14:56:02 +00:00
.sidebar-button
Icon(icon)
span.sidebar-text= name
2017-06-15 21:03:55 +00:00
component NavigationButtonNoAJAX(name string, target string, icon string)
2017-06-17 22:06:08 +00:00
a.navigation-link(href=target, aria-label=name)
.navigation-button
2017-06-16 16:12:18 +00:00
Icon(icon)
2017-07-19 14:56:02 +00:00
span.navigation-text= name
component SidebarButtonNoAJAX(name string, target string, icon string)
a.sidebar-link(href=target, aria-label=name, data-bubble="true")
.sidebar-button
Icon(icon)
span.sidebar-text= name