Sha256: c2734a8c48d9f43a534157318cc8346992f0b862b66f3bd895c39c47c0135dfc
Contents?: true
Size: 1.18 KB
Versions: 14
Compression:
Stored size: 1.18 KB
Contents
- truncated = truncate(email.body_without_textile.to_s.gsub("\n", " "), :length => 125 - email.subject.to_s.size) - formatted = email.body - mediator = email.mediator %li.mail.highlight[email] .body = link_to avatar_for(email.user, :size => :small), user_path(email.user) %ul.tools - if can?(:destroy, mediator) %li= link_to_delete(email) - if can?(:read, mediator) %tt - if email.sent_to.to_s.include?(", ") = "To: " = email.sent_to - else = "To " = link_to_email(email.sent_to) = "from " = link_to_email(email.sent_from) = ", sent on " = l(email.sent_at, :format => :mmddhhss) << " | " = link_to_function(email.collapsed? ? t(:more) : t(:less), "crm.flip_note_or_email(this, '#{t(:more)}', '#{t(:less)}')", :class => "toggle") %dt{ hidden_if(email.expanded?), :id => dom_id(email, :truncated) } %p = h(email.subject) %tt = " - " = truncated %dt.textile{ hidden_if(email.collapsed?), :id => dom_id(email, :formatted) } .email_content %p= h(email.subject) = auto_link(formatted)
Version data entries
14 entries across 14 versions & 2 rubygems