Sha256: 5aa5fca083bf58ab47f80fca2aa231b0e19b68a78741176d0f603692f748382f

Contents?: true

Size: 310 Bytes

Versions: 51

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ##
  # Exhibit and browse category mastheads
  class Masthead < Spotlight::FeaturedImage
    def display?
      display && iiif_url.present?
    end

    private

    def image_size
      Spotlight::Engine.config.featured_image_masthead_size
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

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