Sha256: 70364e5a3ac436da15f4fc382b2afd3e2f639228a5e8f5db5a7b33b0dbce6e19
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
<style type="text/css"> #message_headers { position: absolute; top: 0px; left: 0; width: 100%; height: 85px; padding: 10px 0 0 0; margin: 0; background: #fff; font-size: 12px; font-family: "Lucida Grande"; border-bottom: 1px solid #dedede; overflow: hidden; } #message_headers dl { margin: 0; padding: 0; } #message_headers dt { width: 60px; padding: 1px; float: left; text-align: right; font-weight: bold; color: #7f7f7f; } #message_headers dd { margin-left: 70px; padding: 1px; } #message_headers p.alternate { position: absolute; top: 0; right: 15px; } #message_headers p.alternate a { color: #09c; } pre#message_body { padding: 10px; word-wrap: break-word; } body { margin-top: 96px; } </style> <div id="message_headers"> <dl> <dt>From:</dt> <dd><%= mail.from.join(", ") %></dd> <dt>Subject:</dt> <dd><strong><%= mail.subject %></strong></dd> <dt>Date:</dt> <dd><%= Time.now.strftime("%b %e, %Y %I:%M:%S %p %Z") %></dd> <dt>To:</dt> <dd><%= mail.to.join(", ") %></dd> </dl> <% if mail.multipart? %> <p class="alternate"> <% if type == "plain" %> <a href="rich.html">View HTML version</a> <% else %> <a href="plain.html">View plain text version</a> <% end %> </p> <% end %> </div> <% if type == "plain" %> <pre id="message_body"><%= CGI.escapeHTML(body) %></pre> <% else %> <%= body %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
letter_opener-0.0.2 | lib/letter_opener/message.html.erb |
letter_opener-0.0.1 | lib/letter_opener/message.html.erb |