Sha256: e74ccf78f89c3aaf08f39315735cf27238687231a75864e8891dca59e5b0bbba

Contents?: true

Size: 840 Bytes

Versions: 11

Compression:

Stored size: 840 Bytes

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-6.0.0.pre3 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.16.3 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.16.2 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.16.1 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-6.0.0.pre2 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-6.0.0.pre1 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.16.0 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.15.0 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.14.0 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.13.1 app/helpers/blacklight/layout_helper_behavior.rb
blacklight-5.13.0 app/helpers/blacklight/layout_helper_behavior.rb