From 1680c03f631cbd5f8bc91c6eedfe95a05a9a6bff Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Wed, 3 Dec 2025 15:03:36 -0500 Subject: [PATCH] Disable mailroom (#681) --- app/views/my/mailroom/index.html.erb | 6 +++--- app/views/shared/_nav.html.erb | 6 +++--- config/routes.rb | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/views/my/mailroom/index.html.erb b/app/views/my/mailroom/index.html.erb index cb56e36..cda9ae1 100644 --- a/app/views/my/mailroom/index.html.erb +++ b/app/views/my/mailroom/index.html.erb @@ -22,9 +22,9 @@

Your mailing address is set up and ready to receive mail!

- <%= link_to my_mailing_address_path, class: "text-cyan hover:text-blue underline font-semibold" do %> - View my mailing address - <% end %> + <%# link_to my_mailing_address_path, class: "text-cyan hover:text-blue underline font-semibold" do %> + + <%# end %> <% else %>
diff --git a/app/views/shared/_nav.html.erb b/app/views/shared/_nav.html.erb index 18c2de3..bd9fde7 100644 --- a/app/views/shared/_nav.html.erb +++ b/app/views/shared/_nav.html.erb @@ -70,9 +70,9 @@ <% end %>
- <%= link_to my_mailroom_path, class: "block px-2 py-1 rounded-lg transition #{current_page?(my_mailroom_path) ? 'bg-primary/50 text-primary' : 'hover:bg-[#23272a]'}", data: { action: "click->nav#clickLink" } do %> - Mailroom - <% end %> + <%# link_to my_mailroom_path, class: "block px-2 py-1 rounded-lg transition #{current_page?(my_mailroom_path) ? 'bg-primary/50 text-primary' : 'hover:bg-[#23272a]'}", data: { action: "click->nav#clickLink" } do %> + + <%# end %>
<%= link_to my_settings_path, class: "block px-2 py-1 rounded-lg transition #{current_page?(my_settings_path) ? 'bg-primary/50 text-primary' : 'hover:bg-[#23272a]'}", data: { action: "click->nav#clickLink" } do %> diff --git a/config/routes.rb b/config/routes.rb index 981a298..2563142 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -22,7 +22,7 @@ Rails.application.routes.draw do mount AhoyCaptain::Engine => "/ahoy_captain" mount Flipper::UI.app(Flipper) => "flipper", as: :flipper - get "/my/mailing_address", to: "my/mailing_address#show", as: :my_mailing_address + # get "/my/mailing_address", to: "my/mailing_address#show", as: :my_mailing_address end constraints AdminLevelConstraint.new(:superadmin, :admin, :viewer) do @@ -114,8 +114,8 @@ Rails.application.routes.draw do namespace :my do resources :project_repo_mappings, param: :project_name, only: [ :edit, :update ], constraints: { project_name: /.+/ } - resource :mailing_address, only: [ :show, :edit ] - get "mailroom", to: "mailroom#index" + # resource :mailing_address, only: [ :show, :edit ] + # get "mailroom", to: "mailroom#index" resources :heartbeats, only: [] do collection do get :export