.white.padding.message-item

  -if message.customer
    %h4
      =message.customer.anonyme_nick
      ="(#{message.customer.fullname} de #{message.customer.organisation})"

  -elsif message.admin
    %h4="#{message.admin.fullname} (ADMINISTRATEUR)"

  %p.info="Posté le #{message.created_at.strftime('%d/%m/%Y à %H:%M')}, il y a #{time_ago_in_words(message.created_at)}"


  %p= message.content

  =link_to "Supprimer", [:admin, @need, message], class: "btn btn-danger", method: "delete"
