<%= conversation.subject %>
<% unless @box.eql?'trash' %><%= link_to(image_tag('btn/btn_delete.png', :atl => "Delete", :title => "Delete"),
conversation_path(conversation, :location => 'conversation', :box => @box),
:confirm => 'Do you want to move "' + conversation.subject + '" to trash?',
:method => :delete, :remote => true) %><% end %>
<%= t("message.participants") %>:
<% conversation.recipients.each do |recp| %>
<%= link_to image_tag(recp.logo.url(:contact), :title=>recp.name, :alt => recp.name), recp.subject %>
<% end %>
<% @receipts.each do |receipt| %>
<% message = receipt.message %>
<% read_class = message.is_unread?(@actor) ? 'unread' : '' %>
<%= render :partial => "messages/message",:object => message, :locals => {:read_class => read_class} %>
<% end %>
<% unless @box.eql?'trash' %>
<%= form_tag conversation_path(conversation), :method => :put, :class => "cont_conversation" do %>
<% if @receipt and @receipt.errors.any? %>
<%= pluralize(@receipt.errors.count, "error") %> prohibited this message from being sent:
<% @receipt.errors.full_messages.each do |msg| %>
-
<%= msg %>
<% end %>
<% end %>
<%= t("message.answer") %>
<%= text_area_tag :body, nil,:rows =>6, :cols=> 53, :class => "required form_tag" %>
<%= submit_tag "Reply", :name => :reply_all,:class => "button" %>
<% end %>
<%end %>