Sha256: 2336e5f1f650da5c27c4d938f5bad317001cd9e7cd34feed076ec6812cff2f4d

Contents?: true

Size: 402 Bytes

Versions: 63

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ##
  # Helper module for content in mastheads
  module MastheadHelper
    def masthead_heading_content
      return current_exhibit.title if current_exhibit

      application_name
    end

    def masthead_subheading_content
      return current_exhibit&.subtitle&.presence if current_exhibit

      current_site&.subtitle&.presence
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.5 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-3.0.0.alpha.4 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-3.0.0.alpha.3 app/helpers/spotlight/masthead_helper.rb