Sha256: f1024c38c6d60543a7713a73189e27a6adb71d3dbece95fb7def0a3bba622dd0
Contents?: true
Size: 755 Bytes
Versions: 5
Compression:
Stored size: 755 Bytes
Contents
- document ||= search_result - path = folder_document_url(document.folder, document) - hit = document.hit .document = link_to "document:", path, :class => "#{document.file_extension} icon" - if hit and (highlights = hit.highlights.select{|hl| hl.field_name == :name}).any? = render :partial => "droom/shared/title_excerpt", :locals => {:path => path, :highlights => highlights} - else = link_to document.name, path, :title => t(:click_to_download, :name => document.file_file_name) .excerpt - if hit and (highlights = hit.highlights.select{|hl| hl.field_name != :name}).any? = render :partial => "droom/shared/excerpt", :locals => { :highlights => highlights } - else = truncate document.extracted_text, :length => 130
Version data entries
5 entries across 5 versions & 1 rubygems