Module: Spotlight::NavbarHelper

Included in:
MainAppHelpers
Defined in:
app/helpers/spotlight/navbar_helper.rb

Overview

Helpers used by the navbar

Instance Method Summary collapse

Instance Method Details

#should_render_spotlight_search_bar?Boolean

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)

Returns:

  • (Boolean)


11
12
13
# File 'app/helpers/spotlight/navbar_helper.rb', line 11

def should_render_spotlight_search_bar?
  current_exhibit&.searchable?
end