=link_to [:public, annonce_message], :class => "annonce_message_li", :id => "annonce_message_#{annonce_message.id}", :remote => true do


  .time
    =l annonce_message.created_at, :format => "%d/%m/%y"
  .pseudo
    -if !annonce_message.readed or annonce_message.children.where(:destinataire_id => current_annonce_account.id).where("readed is null").first
      .new
    -if annonce_message.not_blocked
      -if annonce_message.expediteur
        =image_tag annonce_message.expediteur.avatar_url
        =annonce_message.expediteur.pseudo
      -else
        =annonce_message.name
    -else
      Utilisateur
  -if annonce_message.not_blocked
    -if answer = annonce_message.children.order("created_at DESC").first
      = truncate(answer.message) 
    -else
      = truncate(annonce_message.message) 
  .clear