<%= conversation.subject %>
<% unless @box.eql?'trash' %><%= link_to(image_tag('btn/btn_delete.png', :atl => t('mailboxer.delete'), :title => t('mailboxer.delete')),
conversation_path(conversation, :location => 'conversation', :box => @box),
:confirm => t('mailboxer.delete_confirm', :object => conversation.subject),
: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 t('mailboxer.reply'), :name => :reply_all,:class => "button" %>
<% end %>
<%end %>
<%= javascript_tag do %>
$(document).ready(function(){
$(".message .body img").each(function(){
var link = '';
$(this).after(link);
$(this).remove();
$(".message .body img").aeImageResize({ height: 490, width: 490 });
$(".message .body a.img_link").lightBox({
maxHeight: 920,
maxWidth: 920,
imageLoading: '../assets/lightbox-ico-loading.gif',
imageBtnClose: '../assets/lightbox-btn-close.gif',
imageBtnPrev: '../assets/lightbox-btn-prev.gif',
imageBtnNext: '../assets/lightbox-btn-next.gif',
imageBlank: '../assets/lightbox-blank.gif'
});
})
});
<% end %>