Sha256: 208699d34fa548558e78a649ea927058439a23a012bc8b4541e9885b6bb4e338
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
- venue ||= search_result - path = venue_url(venue) - hit = venue.hit .venue = link_to "venue:", path, :class => "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 venue.name, path .excerpt - if hit and (highlights = hit.highlights.select{|hl| hl.field_name != :name}).any? = render :partial => "droom/shared/excerpt", :locals => { :highlights => highlights } - else - if venue.description = truncate venue.description, :length => 60 %br = venue.address
Version data entries
5 entries across 5 versions & 1 rubygems