%tr
  %td
    -if contact_message.contact
      = link_to contact_message.contact.fullname + " (#{contact_message.contact.organisation})", edit_admin_customer_path( contact_message.contact)
    -else
      Utilisateur supprimé
  %td
    ="#{contact_message.last_at.strftime('%d/%m/%Y à %H:%M')}, il y a #{time_ago_in_words(contact_message.last_at)}"
  %td{style:"text-align:center"}
    =contact_message.messages_count
  %td{style:"text-align:center"}
    -if contact_message.unread_count > 0
      %span.badge{style:"background-color:#D9534F"}
        =contact_message.unread_count
    -else
      Aucun
  %td{:style => "width:100px;text-align:right"}
    =link_to i(:"comments"), admin_conversation_path(contact_message.conversation_id) if contact_message.conversation_id
