Sha256: 083ed21f53f54927da18a60ffa99cf86f63480a63872e6a8d0df990a41cd402c

Contents?: true

Size: 490 Bytes

Versions: 11

Compression:

Stored size: 490 Bytes

Contents

class Cms::MainController < Cms::SetupController
  unloadable
  extend Cms::RoleAuthentication

  layout 'cms'

  before_filter :load_pages_and_assets

  authenticate_user :all, :only => %w(index)

  def index
    render :partial => 'cms/shared/index', :layout => true
  end

protected
  def load_pages_and_assets
    @context = Cms::Context.new(@cms_context)

    @pages = @context.pages.ordered.all(:conditions => {:layout_page_id => nil})
    @assets = @context.assets.ordered
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
liquid_cms-0.2.0.11 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0.10 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0.9 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0.8 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0.7 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0.6 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0.5 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0.4 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0.3 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0.2 app/controllers/cms/main_controller.rb
liquid_cms-0.2.0 app/controllers/cms/main_controller.rb