Sha256: a670ce398d3a8d9bb3971f04ae654db0a257c4e7178d585c73a08eaac92c58e6

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

Stored size: 455 Bytes

Contents

module Spotlight
  ##
  # Helpers used by the navbar
  module NavbarHelper
    ##
    # Check if the spotlight search box should be rendered. It is not displayed
    # if the exhibit is not searchable, we're not in an exhibit, or the top-level
    # exhibit masthead isn't being used (e.g. on a browse category)
    def should_render_spotlight_search_bar?
      exhibit_masthead? && (current_exhibit.nil? || current_exhibit.searchable?)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-spotlight-0.7.2 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.7.1 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.7.0 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.6.0 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.5.0 app/helpers/spotlight/navbar_helper.rb