Skip to content

Commit 1680c03

Browse files
authored
Disable mailroom (#681)
1 parent 6fedc36 commit 1680c03

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

app/views/my/mailroom/index.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
<p class="text-lg mb-4">
2323
Your mailing address is set up and ready to receive mail!
2424
</p>
25-
<%= link_to my_mailing_address_path, class: "text-cyan hover:text-blue underline font-semibold" do %>
26-
View my mailing address
27-
<% end %>
25+
<%# link_to my_mailing_address_path, class: "text-cyan hover:text-blue underline font-semibold" do %>
26+
<!-- View my mailing address-->
27+
<%# end %>
2828
</section>
2929
<% else %>
3030
<section class="bg-orange bg-opacity-10 border border-orange rounded-lg p-6 mb-8">

app/views/shared/_nav.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070
<% end %>
7171
</div>
7272
<div>
73-
<%= 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 %>
74-
Mailroom
75-
<% end %>
73+
<%# 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 %>
74+
<!-- Mailroom-->
75+
<%# end %>
7676
</div>
7777
<div>
7878
<%= 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 %>

config/routes.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def matches?(request)
2222
mount AhoyCaptain::Engine => "/ahoy_captain"
2323
mount Flipper::UI.app(Flipper) => "flipper", as: :flipper
2424

25-
get "/my/mailing_address", to: "my/mailing_address#show", as: :my_mailing_address
25+
# get "/my/mailing_address", to: "my/mailing_address#show", as: :my_mailing_address
2626
end
2727

2828
constraints AdminLevelConstraint.new(:superadmin, :admin, :viewer) do
@@ -114,8 +114,8 @@ def matches?(request)
114114

115115
namespace :my do
116116
resources :project_repo_mappings, param: :project_name, only: [ :edit, :update ], constraints: { project_name: /.+/ }
117-
resource :mailing_address, only: [ :show, :edit ]
118-
get "mailroom", to: "mailroom#index"
117+
# resource :mailing_address, only: [ :show, :edit ]
118+
# get "mailroom", to: "mailroom#index"
119119
resources :heartbeats, only: [] do
120120
collection do
121121
get :export

0 commit comments

Comments
 (0)