Sha256: 2336e5f1f650da5c27c4d938f5bad317001cd9e7cd34feed076ec6812cff2f4d

Contents?: true

Size: 402 Bytes

Versions: 58

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

58 entries across 58 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.3.5 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.3.4 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.3.3 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.3.2 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.3.1 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.3.0 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.2.0 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.1.2 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.1.1 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.1.0 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.0.3 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.0.2 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.0.1 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-4.0.0 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-3.6.0.beta10 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-3.6.0.beta9 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-3.6.0.beta8 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-3.5.0.4 app/helpers/spotlight/masthead_helper.rb
blacklight-spotlight-3.6.0.beta7 app/helpers/spotlight/masthead_helper.rb