diff --git a/app/assets/images/communication/photo_import/pexels.png b/app/assets/images/communication/photo_imports/pexels.png similarity index 100% rename from app/assets/images/communication/photo_import/pexels.png rename to app/assets/images/communication/photo_imports/pexels.png diff --git a/app/assets/images/communication/photo_import/unsplash.svg b/app/assets/images/communication/photo_imports/unsplash.svg similarity index 100% rename from app/assets/images/communication/photo_import/unsplash.svg rename to app/assets/images/communication/photo_imports/unsplash.svg diff --git a/app/controllers/admin/communication/photo_import_controller.rb b/app/controllers/admin/communication/photo_imports_controller.rb similarity index 90% rename from app/controllers/admin/communication/photo_import_controller.rb rename to app/controllers/admin/communication/photo_imports_controller.rb index 9d606a13361deab7a26a899f04f8f89a2f0639f5..231e78b1d4f922e85c2a5a31fd9544867d7bd26f 100644 --- a/app/controllers/admin/communication/photo_import_controller.rb +++ b/app/controllers/admin/communication/photo_imports_controller.rb @@ -1,4 +1,4 @@ -class Admin::Communication::PhotoImportController < Admin::Communication::ApplicationController +class Admin::Communication::PhotoImportsController < Admin::Communication::ApplicationController layout false def unsplash diff --git a/app/views/admin/application/featured_image/_edit.html.erb b/app/views/admin/application/featured_image/_edit.html.erb index 7e5d81300cfc9990bf2db367524a4b8c0613365f..d06e8ba72065e3fcdcdf4116c398d63daf58f695 100644 --- a/app/views/admin/application/featured_image/_edit.html.erb +++ b/app/views/admin/application/featured_image/_edit.html.erb @@ -16,5 +16,5 @@ input_html: { data: { 'summernote-config' => 'link' } } %> - <%= render 'admin/communication/photo_import/selector', about: about, f:f %> + <%= render 'admin/communication/photo_imports/selector', about: about, f:f %> <% end %> diff --git a/app/views/admin/communication/photo_import/_selector.html.erb b/app/views/admin/communication/photo_imports/_selector.html.erb similarity index 97% rename from app/views/admin/communication/photo_import/_selector.html.erb rename to app/views/admin/communication/photo_imports/_selector.html.erb index 822be6de0ffba3bae03b443b00e7c50761506fed..80a83bb0375a438e876c0df5a979c14dcf444b89 100644 --- a/app/views/admin/communication/photo_import/_selector.html.erb +++ b/app/views/admin/communication/photo_imports/_selector.html.erb @@ -106,7 +106,7 @@ pexels_path = admin_communication_pexels_path(website_id: nil, format: :json) </a> </div> <div class="col-lg-2 text-center"> - <%= image_tag 'communication/photo_import/unsplash.svg', width: 100, alt: 'Unsplash' %> + <%= image_tag 'communication/photo_imports/unsplash.svg', width: 100, alt: 'Unsplash' %> </div> <div class="col-lg-5 text-end"> <a href="#" v-if="unsplash.page < unsplash.data.total_pages" @@ -128,7 +128,7 @@ pexels_path = admin_communication_pexels_path(website_id: nil, format: :json) </a> </div> <div class="col-lg-2 text-center"> - <%= image_tag 'communication/photo_import/pexels.png', width: 100, alt: 'Unsplash' %> + <%= image_tag 'communication/photo_imports/pexels.png', width: 100, alt: 'Unsplash' %> </div> <div class="col-lg-5 text-end"> <a href="#" diff --git a/app/views/admin/communication/photo_import/pexels.json.jbuilder b/app/views/admin/communication/photo_imports/pexels.json.jbuilder similarity index 100% rename from app/views/admin/communication/photo_import/pexels.json.jbuilder rename to app/views/admin/communication/photo_imports/pexels.json.jbuilder diff --git a/app/views/admin/communication/photo_import/unsplash.json.jbuilder b/app/views/admin/communication/photo_imports/unsplash.json.jbuilder similarity index 100% rename from app/views/admin/communication/photo_import/unsplash.json.jbuilder rename to app/views/admin/communication/photo_imports/unsplash.json.jbuilder diff --git a/config/routes/admin/communication.rb b/config/routes/admin/communication.rb index eb13c2897b6ad095fb1c738e46c8189641d70619..6e5ee1727dd78f239763d03da4c2c920ec243a43 100644 --- a/config/routes/admin/communication.rb +++ b/config/routes/admin/communication.rb @@ -1,7 +1,7 @@ namespace :communication do - scope 'photo-import' do - get 'unsplash' => 'photo_import#unsplash' - get 'pexels' => 'photo_import#pexels' + scope 'photo-imports' do + get 'unsplash' => 'photo_imports#unsplash' + get 'pexels' => 'photo_imports#pexels' end resources :websites do member do