Sha256: 9948a330d3c5da61364b665c2e6eaa6ab97b1fd80b40ccb004417b18c07eaea6

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

# Methods added to this helper will be available to all templates in the hosting
# application
module Blacklight
  # A module for useful methods used in layout configuration
  module LayoutHelperBehavior
    ##
    # Classes added to a document's show content div
    # @return [String]
    def show_content_classes
      "#{main_content_classes} show-document"
    end

    ##
    # Classes added to a document's sidebar div
    # @return [String]
    def show_sidebar_classes
      sidebar_classes
    end

    ##
    # Classes used for sizing the main content of a Blacklight page
    # @return [String]
    def main_content_classes
      'col-md-9 col-sm-8'
    end

    ##
    # Classes used for sizing the sidebar content of a Blacklight page
    # @return [String]
    def sidebar_classes
      'col-md-3 col-sm-4'
    end

    ##
    # Class used for specifying main layout container classes. Can be
    # overwritten to return 'container-fluid' for Bootstrap full-width layout
    # @return [String] 
    def container_classes
      'container'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
blacklight-5.19.2 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.19.1 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.19.0 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.18.0 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.17.2 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-6.0.0.pre5 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.17.1 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.17.0 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-6.0.0.pre4 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.16.4 app/helpers/blacklight/layout_helper_behavior.rb