Sha256: 45dfc19da34daa449d1f22bca466e6ed36a02b2b041cde2973663960309d3b94

Contents?: true

Size: 662 Bytes

Versions: 4

Compression:

Stored size: 662 Bytes

Contents

- person ||= search_result
- path = person_url(person)
- hit = person.hit
.person
  = link_to "person:", path, :class => "icon"
  - if hit and (highlights = hit.highlights.select{|hl| hl.field_name == :name or hl.field_name == :forename}).any?
    = render :partial => "droom/shared/title_excerpt", :locals => {:path => path, :highlights => highlights}
  - else
    = link_to person.formal_name, path
  .excerpt
    - if hit and (highlights = hit.highlights.select{|hl| hl.field_name == :description}).any?
      = render :partial => "droom/shared/excerpt", :locals => { :highlights => highlights }
    - else
      = truncate person.description, :length => 130

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/people/_search_result.html.haml
droom-0.4.2 app/views/droom/people/_search_result.html.haml
droom-0.4.1 app/views/droom/people/_search_result.html.haml
droom-0.2.1 app/views/droom/people/_search_result.html.haml