Sha256: 471e115eae5c0fcc3d9eaa9eee5c3759b7ccce391cf40e69fd1ca63ce0468e12

Contents?: true

Size: 688 Bytes

Versions: 4

Compression:

Stored size: 688 Bytes

Contents

- group ||= search_result
- path = group_url(group)
- hit = group.hit
.group
  = link_to "group:", group_url(group), :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 group.name, path
  %span.note
    = t :group_members, :count => group.people.count
  .excerpt
    - if hit and (highlights = hit.highlights.select{|hl| hl.field_name != :name}).any?
      = render :partial => "droom/shared/excerpt", :locals => { :highlights => highlights }
    - else
      = truncate group.description, :length => 130

Version data entries

4 entries across 4 versions & 1 rubygems

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