Sha256: c40b2fd8c211fcde21bbd58fd9e57b117a577879389db9183e0a84d03eff54d9

Contents?: true

Size: 580 Bytes

Versions: 26

Compression:

Stored size: 580 Bytes

Contents

module Knitkit
  class WebsiteSectionsController < BaseController

    def index
      @current_user = current_user
      @contents = Article.find_published_by_section(@active_publication, @website_section)
      layout = @website_section.get_published_layout(@active_publication)
      unless layout.nil?
        @website_section.render_base_layout? ? (render :inline => layout, :layout => 'knitkit/base') : (render :inline => layout)
      else
        @website_section.render_base_layout? ? (render) : (render :layout => false)
      end
    end
    
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
knitkit-2.1.15 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.14 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.13 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.12 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.11 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.10 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.9 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.8 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.7 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.6 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.5 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.4 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.3 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.2 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.1 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.1.0 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.0.11 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.0.10 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.0.9 app/controllers/knitkit/website_sections_controller.rb
knitkit-2.0.7 app/controllers/knitkit/website_sections_controller.rb