Sha256: deb90edf7468b5f5160c2fe8134a150b3040afd243aa9f591aad6af30eb10c7b

Contents?: true

Size: 448 Bytes

Versions: 14

Compression:

Stored size: 448 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 && current_exhibit.searchable?
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
blacklight-spotlight-0.13.0 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.12.1 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.12.0 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.11.0 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.10.3 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.10.2 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.10.1 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.10.0 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.9.2 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.9.1 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.9.0 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.8.2 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.8.1 app/helpers/spotlight/navbar_helper.rb
blacklight-spotlight-0.8.0 app/helpers/spotlight/navbar_helper.rb