Sha256: 46fac20df7a95bc44d7bc9f8cea8984d3f45693f86b62ba5ec4e5c1eafa2c07d

Contents?: true

Size: 571 Bytes

Versions: 39

Compression:

Stored size: 571 Bytes

Contents

# frozen_string_literal: true

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

      def index
        @layout_root = Page.find_or_create_layout_root_for(Language.current.id)
        @languages = Language.on_current_site
      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

39 entries across 39 versions & 1 rubygems

Version Path
alchemy_cms-4.2.3 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.3.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.2.2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.1.2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.1.1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.2.1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.2.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.2.0.rc1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.1.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.0.5 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.0.4 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.1.0.rc1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.0.3 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.0.2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.1.0.beta app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.0.1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.0.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.0.0.rc2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.0.0.rc1 app/controllers/alchemy/admin/layoutpages_controller.rb