Module: Spotlight::NavbarHelper
- Included in:
- MainAppHelpers
- Defined in:
- app/helpers/spotlight/navbar_helper.rb
Overview
Helpers used by the navbar
Instance Method Summary collapse
-
#should_render_spotlight_search_bar? ⇒ Boolean
Check if the spotlight search box should be rendered.
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)
9 10 11 |
# File 'app/helpers/spotlight/navbar_helper.rb', line 9 def current_exhibit && current_exhibit.searchable? end |