Sha256: 31ddb54ea2bb85b083fd3fa7550a867a57ff4eeafd866a1acfe77333a1f6af73

Contents?: true

Size: 671 Bytes

Versions: 3

Compression:

Stored size: 671 Bytes

Contents

class Admin::ContentImagesController < Admin::BaseController
  resource_controller
  
  index.before do
    @content_images = ContentImage.where(:content_part_id => nil,
                                         :content_part_as_overlay_id => nil)

    @new_image = ContentImage.new
  end
  
  create.wants.html { redirect_to admin_content_images_path }
  update.wants.html { redirect_to admin_content_images_path }
  destroy.wants.html { redirect_to admin_content_images_path }
  index.wants.html do
    if params[:embedded] == "true"
      render 'admin/content_images/file_browser', :layout => false
    else
      render 'admin/content_images/index'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree-cms-0.2.1 app/controllers/admin/content_images_controller.rb
spree-cms-0.2.0 app/controllers/admin/content_images_controller.rb
spree-cms-0.1.0 app/controllers/admin/content_images_controller.rb