Sha256: 57fe24ec9a80688e30256de9dc537bcf6c02ab233fe199a8a19929a8ebe54821

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 Bytes

Contents

module CommonwealthVlrEngine
  module Pages
    extend ActiveSupport::Concern

    def home
      @carousel_slides = CarouselSlide.where(:context=>'root').order(:sequence)
      section_active_count = 0
      sections = ['maps', 'collections', 'institutions', 'formats']
      sections.each do |section|
        if t("blacklight.home.browse.#{section}.enabled")
          section_active_count += 1
        end
      end

      @middle_feature_columns = 12 / section_active_count

      render 'pages/home'
    end

    def about
      @nav_li_active = 'about'
    end

    def about_site
      @nav_li_active = 'about'
    end

    def explore
      @nav_li_active = 'explore'
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 lib/commonwealth-vlr-engine/pages.rb
commonwealth-vlr-engine-0.0.4 lib/commonwealth-vlr-engine/pages.rb
commonwealth-vlr-engine-0.0.3 lib/commonwealth-vlr-engine/pages.rb
commonwealth-vlr-engine-0.0.2 lib/commonwealth-vlr-engine/pages.rb
commonwealth-vlr-engine-0.0.1 lib/commonwealth-vlr-engine/pages.rb