Sha256: 09d6fec988558d7dcfbd9e40f68aeffdcb1f9d9240816e17ba0960fc01e4682d

Contents?: true

Size: 958 Bytes

Versions: 3

Compression:

Stored size: 958 Bytes

Contents

<div id="<%= dom_id email %>">
  <% if email.cc %>
    <p>
      <strong>Cc:</strong>
      <%= email.cc %>
    </p>
  <% end %>
  <p>
    <strong>Subject:</strong>
    <%= email.subject %>
  </p>
  <p>
    <strong>From:</strong>
    <%= email.from %>
  </p>
  <p>
    <strong>To:</strong>
    <%= email.to %>
  </p>
  <p>
    <strong>Body:</strong>
    <%= email.body %>
  </p>
  <% email.files.each do |file| %>
    <div>
      <% if file.representable? %>
        <%=  image_tag main_app.url_for(file.representation(resize_to_limit: [100, 100])) %>
      <% else %>
        <%= link_to file.filename, main_app.url_for(file) %>
      <% end %>
    </div>
  <% end %>
  <p>
    <strong>Multipart:</strong>
    <%= email.multipart %>
  </p>
  <p>
    <strong>Emailable ID:</strong>
    <%= email.inbox_id %>
  </p>
  <p>
    <strong>Read:</strong>
    <%= email.read %>
  </p>
  <p>
    <strong>Message ID:</strong>
    <%= email.message_id %>
  </p>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
po_box-0.1.2 app/views/po_box/emails/_email.html.erb
po_box-0.1.1 app/views/po_box/emails/_email.html.erb
po_box-0.1.0 app/views/po_box/emails/_email.html.erb