Skip to content

Commit

Permalink
Changed the link for the how to submit and deleted unused code (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea authored Aug 16, 2024
1 parent 23c670c commit bad30a1
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 58 deletions.
2 changes: 0 additions & 2 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ def about; end

def features; end

def submit; end

def policies; end

def contributors; end
Expand Down
48 changes: 0 additions & 48 deletions app/views/home/submit.html.erb

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/shared/_nav_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<li class="nav-item"><a class="nav-link" href="<%= root_path %>">Home</a></li>
<li class="nav-item"><a class="nav-link" href="<%= home_about_path %>">About</a></li>
<li class="nav-item"><a class="nav-link" href="<%= home_features_path %>">Features</a></li>
<li class="nav-item"><a class="nav-link" href="<%= home_submit_path %>">How to Submit</a></li>
<li class="nav-item"><a class="nav-link" href="https://datacommons.princeton.edu/describe/" target="_blank">How to Submit</a></li>
</ul>
1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

get 'about' => 'home#about', as: :home_about
get 'features' => 'home#features', as: :home_features
get 'submit' => 'home#submit', as: :home_submit
get 'policies' => 'home#policies', as: :home_policies
get 'contributors' => 'home#contributors', as: :home_contributors

Expand Down
5 changes: 0 additions & 5 deletions spec/requests/static_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,4 @@
get "/about"
expect(response).to have_http_status(:success)
end

it "has a how to submit page" do
get "/submit"
expect(response).to have_http_status(:success)
end
end
2 changes: 1 addition & 1 deletion spec/system/front_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
visit '/'
expect(page).to have_link "Home", href: "/"
expect(page).to have_link "About", href: "/about"
expect(page).to have_link "How to Submit", href: "/submit"
expect(page).to have_link "How to Submit", href: "https://datacommons.princeton.edu/describe/"
expect(page).to have_link "Accessibility", href: "https://accessibility.princeton.edu/help"
end
end
Expand Down

0 comments on commit bad30a1

Please sign in to comment.