app/views/conversations/_conversation.html.slim
ul.conversation-message-list
- alternate = false
- prev_sender = nil
- @conversation.messages.each do |message|
- alternate = !alternate if prev_sender != message.sender && prev_sender
== render 'message', message: message, alternate: alternate
- prev_sender = message.sender