diff --git a/app/controllers/admin/communication/website/pages_controller.rb b/app/controllers/admin/communication/website/pages_controller.rb index 6588b3a8dbcbd961169dee6ed635da457df08284..25f582de143931aa282f6995966693b0db726d78 100644 --- a/app/controllers/admin/communication/website/pages_controller.rb +++ b/app/controllers/admin/communication/website/pages_controller.rb @@ -31,6 +31,11 @@ class Admin::Communication::Website::PagesController < Admin::Communication::Web breadcrumb end + def static + @about = @page + render layout: false + end + def new @page.website = @website breadcrumb diff --git a/config/routes/admin/communication.rb b/config/routes/admin/communication.rb index 87ed087750da7d711dcb4daf698c334afe595c21..5b465162b0b42507082623315c407af35dc21299 100644 --- a/config/routes/admin/communication.rb +++ b/config/routes/admin/communication.rb @@ -12,6 +12,7 @@ namespace :communication do end member do get :children + get :static end end resources :categories, controller: 'website/categories' do @@ -24,7 +25,11 @@ namespace :communication do end resources :authors, controller: 'website/authors', only: [:index, :show] resources :posts, controller: 'website/posts' - resources :curations, path: 'posts/curations', as: :post_curations, controller: 'website/posts/curations', only: [:new, :create] + resources :curations, + path: 'posts/curations', + as: :post_curations, + controller: 'website/posts/curations', + only: [:new, :create] resources :blocks, controller: 'website/blocks', except: :index do collection do post :reorder @@ -41,13 +46,13 @@ namespace :communication do end end end - get 'structure' => 'website/structure#edit' - patch 'structure' => 'website/structure#update' + get 'structure' => 'website/structure#edit' + patch 'structure' => 'website/structure#update' - get 'indexes' => 'website/index_pages#index' - get 'indexes/:kind' => 'website/index_pages#edit', as: :index - post 'indexes/:kind' => 'website/index_pages#update' + get 'indexes' => 'website/index_pages#index' + get 'indexes/:kind' => 'website/index_pages#edit', as: :index + post 'indexes/:kind' => 'website/index_pages#update' patch 'indexes/:kind' => 'website/index_pages#update' - put 'indexes/:kind' => 'website/index_pages#update' + put 'indexes/:kind' => 'website/index_pages#update' end end