Sha256: 34890923c447c3c4f958c9c8e91c2deedf4000c24e240caba8e7070a25ce44b7

Contents?: true

Size: 577 Bytes

Versions: 21

Compression:

Stored size: 577 Bytes

Contents

module Alchemy
	module Admin
		class TrashController < Alchemy::Admin::BaseController

			helper "alchemy/admin/elements"

			def index
				@elements = Element.trashed
				@page = Page.find_by_id(params[:page_id])
				@allowed_elements = Element.all_for_page(@page)
				@draggable_trash_items = {}
				@elements.each { |e| @draggable_trash_items["element_#{e.id}"] = e.belonging_cellnames(@page) }
				render :layout => false
			end

			def clear
				@page = Page.find_by_id(params[:page_id])
				@elements = Element.trashed
				@elements.map(&:destroy)
			end

		end
	end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.11 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.9.1 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.9 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.8.1 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.8 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.7 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.6 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.5 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.4 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.3 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.2 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.1 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.rc6 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.rc5 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.rc4 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.rc3 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.rc2 app/controllers/alchemy/admin/trash_controller.rb
alchemy_cms-2.1.beta6 app/controllers/alchemy/admin/trash_controller.rb