Sha256: 05ac7f0789e1159e0e445f1eebf8c5dae689a20e4b1ee9f666bbb9f3a77272e6

Contents?: true

Size: 571 Bytes

Versions: 26

Compression:

Stored size: 571 Bytes

Contents

module Alchemy
  module Admin
    class LayoutpagesController < Alchemy::Admin::BaseController
      authorize_resource class: :alchemy_admin_layoutpages

      def index
        @locked_pages = Page.from_current_site.all_locked_by(current_alchemy_user)
        @layout_root = Page.find_or_create_layout_root_for(Language.current.id)
        @languages = Language.all
      end

      def edit
        @page = Page.find(params[:id])
        @page_layouts = PageLayout.layouts_with_own_for_select(@page.page_layout, Language.current.id, true)
      end

    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
alchemy_cms-3.0.2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.0.1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.0.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.0.0.rc8 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.0.0.rc7 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.0.0.rc6 app/controllers/alchemy/admin/layoutpages_controller.rb