From 0b113fc8cdda0a8cfe8aa66097e43dd7d40ed39b Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 26 Mar 2018 20:37:53 +0200 Subject: [PATCH] Search on top --- layout/sidebar/sidebar.pixy | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/layout/sidebar/sidebar.pixy b/layout/sidebar/sidebar.pixy index c0ed98d5..7a99b56d 100644 --- a/layout/sidebar/sidebar.pixy +++ b/layout/sidebar/sidebar.pixy @@ -16,6 +16,12 @@ component Sidebar(user *arn.User) a#notification-count.badge.right-badge.badge-important.hidden(href="/notifications", title="Notifications") 0 + //- Search + .sidebar-link(aria-label="Search") + .sidebar-button + Icon("search") + FuzzySearch + //- Sidebar buttons if user != nil SidebarButton("Home", "/+" + user.Nick + "/animelist/watching", "home") @@ -50,11 +56,6 @@ component Sidebar(user *arn.User) AudioPlayer - .sidebar-link(aria-label="Search") - .sidebar-button - Icon("search") - FuzzySearch - if user != nil && (user.Role == "editor" || user.Role == "admin") SidebarButton("Log", "/log", "list") SidebarButton("Editor", "/editor", "pencil")