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.6.7 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.6.6 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.6.5 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.5.1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.4.5 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.6.4 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.0.6 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.6.3 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.6.2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.6.1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.6.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.5.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.4.4 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.4.3 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.4.2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.4.1 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.4.0 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.3.2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.2.4 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-4.3.1 app/controllers/alchemy/admin/layoutpages_controller.rb