-if customer_message.destinataire == current_customer
  -customer_message.readed = true
  -customer_message.save

.customer_message_container{:class => ("me" if customer_message.expediteur and customer_message.expediteur == current_customer).to_s }




  .side
    
    .square

    .pseudo

      
      -if customer_message.expediteur and customer_message.expediteur == current_customer
        moi
      -else
        =link_to customer_message.expediteur.anonyme_nick, [:public, customer_message.expediteur]
   

      .sub_reseaux
        A
        -customer_message.expediteur.reseauxes.where("parent_id is not null").each do |reseaux|
          =reseaux.name
      
      
      
      
      
    .time
      =l customer_message.created_at, :format => "%d/%m/%y"

  .content

  
    -if customer_message.title
      %p
        =customer_message.title
      %hr

    =simple_format customer_message.message
  