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)
      11 12 13  | 
    
      # File 'app/helpers/spotlight/navbar_helper.rb', line 11 def current_exhibit&.searchable? end  |