Sha256: a462058ce854abe4cdd9ffd3adb444549b8a26201bb377ab8855c2d340d3670b

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

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.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

2 entries across 2 versions & 1 rubygems

Version Path
alchemy_cms-3.5.0.rc2 app/controllers/alchemy/admin/layoutpages_controller.rb
alchemy_cms-3.5.0.rc1 app/controllers/alchemy/admin/layoutpages_controller.rb