Files
grecia/config/routes/moderation.rb
cyrillefr 44b2a07878 Moderate legislation proposals (#3602)
Moderate legislation proposals

- added a controller for moderation/legislation
- updated view to appropriate link + added route
- added a spec
- Feature test
- test for faded
- javascripts for visual effects
2019-10-05 04:02:39 +02:00

44 lines
988 B
Ruby

namespace :moderation do
root to: "dashboard#index"
resources :users, only: :index do
member do
put :hide
put :hide_in_moderation_screen
end
end
resources :debates, only: :index do
put :hide, on: :member
put :moderate, on: :collection
end
resources :proposals, only: :index do
put :hide, on: :member
put :moderate, on: :collection
end
namespace :legislation do
resources :proposals, only: :index do
put :hide, on: :member
put :moderate, on: :collection
end
end
resources :comments, only: :index do
put :hide, on: :member
put :moderate, on: :collection
end
resources :proposal_notifications, only: :index do
put :hide, on: :member
put :moderate, on: :collection
end
resources :administrator_tasks, only: %i[index edit update]
resources :budget_investments, only: :index, controller: "budgets/investments" do
put :hide, on: :member
put :moderate, on: :collection
end
end