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.2.1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.3 app/controllers/alchemy/admin/layoutpages_controller.rb
lc_alchemy_cms-3.2.1 app/controllers/alchemy/admin/layoutpages_controller.rb
lc_alchemy_cms-3.2.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.2.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.2.0.rc1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.2.0.beta app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.0.4 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0.rc3 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0.rc2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0.rc1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0.beta6 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0.beta5 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0.beta4 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.0.3 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0.beta3 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0.beta2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.1.0.beta1 app/controllers/alchemy/admin/layoutpages_controller.rb