Sha256: ad93916af425503eda093fe22f462df9fedd54492c5b6adf0369f3e6dc48e4a8
Contents?: true
Size: 1.13 KB
Versions: 13
Compression:
Stored size: 1.13 KB
Contents
- truncated = truncate(email.body_inline, length: 125 - email.subject.to_s.size) - formatted = email.body_html - 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
13 entries across 13 versions & 1 rubygems