-if contact.contact_products.count > 0
  %tr.vertical_center.contact#contact{:id => contact.id}
  
    %td
      -if contact.urgent
        %span{:style => "display:inline-block;width:10px;height:10px;border-radius:50%;background:red;"}
    %td{:style => "vertical-align:middle;"}
      -if !contact.readed
        %span{:style => "display:inline-block;width:10px;height:10px;border-radius:50%;background:#00B3EC"}
  
    %td{:style => "vertical-align:middle;"}
      -if contact.provenance_id
        =Category.find(contact.provenance_id).name
  
    %td
      =l contact.created_at
    %td
      =contact.name
    %td
      =contact.cp
      =contact.city
    %td
      =contact.small_comment
  
    %td
    
      -if contact.admin

        %span{:style => "background:#{contact.admin.color};padding:5px 10px;"}
          =contact.admin.username
    %td.actions{:style => "width:430px;text-align:right;"}
    
    
      = link_to ic(:"trash-o"), [:admin, contact], :confirm => 'Voulez-vous vraiment supprimer cet utilisateur ?', :method => :delete, :remote => true, :class => "btn btn-danger"

      = link_to ic(:pencil)+" modifier / attribuer la fiche", edit_admin_contact_path(contact), :remote => true, :class => "btn btn-warning"
    
      = link_to ic(:eye)+ " détail de la fiche ", [:admin, contact], :class => "btn btn-primary"




