From 0edfc337c93678ddd7ce1ab67c12e0e6ff3dbe0e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 8 Nov 2025 16:58:02 +0100 Subject: [PATCH] Inline anemic partials --- app/views/my/menus/_accounts.html.erb | 1 - app/views/my/menus/_button.html.erb | 8 ------- app/views/my/menus/_footer.html.erb | 3 --- app/views/my/menus/_hotkeys.html.erb | 8 ------- app/views/my/menus/_nav.html.erb | 8 ++++++- app/views/my/menus/_places.html.erb | 13 ---------- app/views/my/menus/show.html.erb | 34 +++++++++++++++++++++++---- 7 files changed, 37 insertions(+), 38 deletions(-) delete mode 100644 app/views/my/menus/_accounts.html.erb delete mode 100644 app/views/my/menus/_button.html.erb delete mode 100644 app/views/my/menus/_footer.html.erb delete mode 100644 app/views/my/menus/_hotkeys.html.erb delete mode 100644 app/views/my/menus/_places.html.erb diff --git a/app/views/my/menus/_accounts.html.erb b/app/views/my/menus/_accounts.html.erb deleted file mode 100644 index f4b87935a..000000000 --- a/app/views/my/menus/_accounts.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= turbo_frame_tag Current.identity, :account_menu, src: session_menu_url(script_name: nil, menu_section: true, without: ApplicationRecord.current_tenant) %> diff --git a/app/views/my/menus/_button.html.erb b/app/views/my/menus/_button.html.erb deleted file mode 100644 index 3f8162624..000000000 --- a/app/views/my/menus/_button.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -<%= tag.button class:"nav__trigger input input--select center flex-inline align-center txt-normal", - data: { - action: "click->dialog#open:stop keydown.j@document->hotkey#click keydown.meta+j@document->hotkey#click keydown.ctrl+j@document->hotkey#click", - controller: "hotkey" } do %> - <%= image_tag "logo.png" %> - Fizzy - J -<% end %> diff --git a/app/views/my/menus/_footer.html.erb b/app/views/my/menus/_footer.html.erb deleted file mode 100644 index 4a28550a5..000000000 --- a/app/views/my/menus/_footer.html.erb +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/app/views/my/menus/_hotkeys.html.erb b/app/views/my/menus/_hotkeys.html.erb deleted file mode 100644 index 734d6c157..000000000 --- a/app/views/my/menus/_hotkeys.html.erb +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/app/views/my/menus/_nav.html.erb b/app/views/my/menus/_nav.html.erb index 26bd51ba4..052dd5074 100644 --- a/app/views/my/menus/_nav.html.erb +++ b/app/views/my/menus/_nav.html.erb @@ -1,5 +1,11 @@