negos_app/app/views/public/thing_conversations/_thing_conversation.html.haml
2017-06-06 16:15:40 +02:00

20 lines
557 B
Plaintext

-if thing_conversation.thing_type == "Customer"
.customer
-if thing_conversation.thing == current_customer
moi
-else
=#link_to thing_conversation.thing.anonyme_nick, [:public, thing_conversation.thing]
=thing_conversation.thing.anonyme_nick
-chef = false
- current_customer.reseauxes.each do |reseaux|
-if thing_conversation.thing == reseaux.chef_reseau
-chef = true
-if chef
(chef réseau)
-if thing_conversation.thing_type == "Reseaux"
.reseaux
=thing_conversation.thing.name