Sha256: f2f7e384c7b0b760f5d8f1ded54b71649a7499969271178cd51593f73b86c655

Contents?: true

Size: 252 Bytes

Versions: 2

Compression:

Stored size: 252 Bytes

Contents

module Spotlight
  module PagesHelper
    def has_title? document
      document_heading(document) != document.id
    end
    def should_render_record_thumbnail_title? document, block
      has_title?(document) && block["show-title"]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-spotlight-0.0.2 app/helpers/spotlight/pages_helper.rb
blacklight-spotlight-0.0.1 app/helpers/spotlight/pages_helper.rb