From 3dbb466ae7fe7b02c7c4e3f625f96544f8dc0018 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Fri, 31 Oct 2025 15:42:28 -0500 Subject: [PATCH] Shift Add Board around in the nav --- app/views/my/menus/_collections.html.erb | 10 ++++++++-- app/views/my/menus/_hotkeys.html.erb | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/views/my/menus/_collections.html.erb b/app/views/my/menus/_collections.html.erb index 6d7a71d66..bbb9fe18a 100644 --- a/app/views/my/menus/_collections.html.erb +++ b/app/views/my/menus/_collections.html.erb @@ -1,6 +1,12 @@ <% # Using method: :get inside Turbo frame triggers some special Turbo handling where the script_name is lost %> -<% if user_filtering.collections.any? %> - <%= collapsible_nav_section "Boards" do %> +<%= collapsible_nav_section "Boards" do %> + + <% if user_filtering.collections.any? %> <%= render partial: "my/menus/collections/collection", collection: user_filtering.collections, as: :collection %> <% end %> <% end %> diff --git a/app/views/my/menus/_hotkeys.html.erb b/app/views/my/menus/_hotkeys.html.erb index 07b005b9b..19e1e057f 100644 --- a/app/views/my/menus/_hotkeys.html.erb +++ b/app/views/my/menus/_hotkeys.html.erb @@ -1,8 +1,8 @@
<%= filter_hotkey_link "Home", root_path, 1, "home" %> - <%= filter_hotkey_link "Assigned to me", cards_path(assignee_ids: [Current.user.id]), 2, "clipboard" %> - <%= filter_hotkey_link "Added by me", cards_path(creator_ids: [Current.user.id]), 3, "person-add" %> - <%= filter_hotkey_link "New board", new_collection_path, 4, "collection-add" %> + <%= filter_hotkey_link "New board", new_collection_path, 2, "collection-add" %> + <%= filter_hotkey_link "Assigned to me", cards_path(assignee_ids: [Current.user.id]), 3, "clipboard" %> + <%= filter_hotkey_link "Added by me", cards_path(creator_ids: [Current.user.id]), 4, "person-add" %> <%= filter_hotkey_link "Notifications", notifications_path, 5, "bell" %> <%= filter_hotkey_link "Account #{tag.span("Settings", class: "visually-hidden")}", account_settings_path, 6, "settings" %>