Skip to content

Commit

Permalink
Remove articles from application (#672)
Browse files Browse the repository at this point in the history
Articles used thumbnail/feature images.  Removing until there is
an alternate solution.
  • Loading branch information
ebrett authored Nov 20, 2023
1 parent 9769ef0 commit 767ef04
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 355 deletions.
1 change: 0 additions & 1 deletion app/views/layouts/cms.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
<%= nav_link_to(title: "Admin", path: admin_users_path) if current_user.admin? %>
<%= nav_link_to(title: "Blocks", path: admin_content_blocks_path) if current_user.admin? %>
<%= nav_link_to(title: "Pages", path: admin_content_pages_path) %>
<%= nav_link_to(title: "Articles", path: admin_articles_path) %>
<li class="govuk-header__navigation-item">
<%= link_to "See the site", "/", class: "govuk-header__link", target: :_blank %>
</li>
Expand Down
10 changes: 5 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
namespace :admin do
root to: "users#index"
resources :users
resources :articles do
post "publish", on: :member
post "unpublish", on: :member
end
# resources :articles do
# post "publish", on: :member
# post "unpublish", on: :member
# end
resources :content_pages, path: "pages" do
get "versions", on: :member
get "preview_of_live", on: :member
Expand All @@ -43,7 +43,7 @@
get "/#{static_page}", to: "static_pages##{static_page.underscore}"
end

resources :articles, only: %i[index show]
# resources :articles, only: %i[index show]
resources :feedbacks, only: %i[create]

get "/:section/:slug", to: "content#show"
Expand Down
40 changes: 0 additions & 40 deletions spec/features/admin/admin_articles_spec.rb

This file was deleted.

59 changes: 0 additions & 59 deletions spec/features/admin/article_spec.rb

This file was deleted.

51 changes: 0 additions & 51 deletions spec/requests/admin/articles/article_sorting_spec.rb

This file was deleted.

153 changes: 0 additions & 153 deletions spec/requests/admin/articles_spec.rb

This file was deleted.

46 changes: 0 additions & 46 deletions spec/requests/articles_request_spec.rb

This file was deleted.

0 comments on commit 767ef04

Please sign in to comment.