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