.list-row
  %div{style: "float: left; width: 50px; height: 50px;"}
    = link_to image_tag("icons/conversation.png", class: "img-rounded", style: "width: 100%;"), conversation_path(conversation)
  %div{style: "margin-left: 60px;"}
    - if opts[:in_search]
      .text-muted.small CONVERSATION
    .nowrap.text-ellipsis
      %span.h4= link_to conversation.title, conversation_path(conversation), class: "test-conversation-link"
    .nowrap.text-ellipsis.text-muted
      = sanitize(conversation.comments.first.body, tags: [])
    .nowrap
      - conversation.participants.limit(5).each do |user|
        = link_to image_tag(user.image.url(:thumb), class: "img-circle", style: "width: 20px;"), user_path(user)
      - if conversation.participants.length > 5
        = "+#{conversation.participants.length - 5}"
      &nbsp;
      - conversation.tag_list.each do |name|
        = link_to name, search_path(query: name), class: "label label-default"

.list-row
  %div{style: "float: left; width: 50px; height: 50px;"}
    = link_to image_tag("icons/conversation.png", class: "img-rounded", style: "width: 100%;"), conversation_path(conversation)
  %div{style: "margin-left: 60px;"}
    - if opts[:in_search]
      .text-muted.small CONVERSATION
    .nowrap.text-ellipsis
      %span.h4= link_to conversation.title, conversation_path(conversation), class: "test-conversation-link"
    .nowrap.text-ellipsis.text-muted
      = sanitize(conversation.comments.first&.body, tags: [])
    .nowrap
      - conversation.participants.limit(5).each do |user|
        = link_to image_tag(user.image.url(:thumb), class: "img-circle", style: "width: 20px;"), user_path(user)
      - if conversation.participants.length > 5
        = "+#{conversation.participants.length - 5}"
      &nbsp;
      - conversation.tag_list.each do |name|
        = link_to name, search_path(query: name), class: "label label-default"

Fix bug when displaying empty conversation
Fix bug when displaying empty conversation
