Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 71905ffc0e
Fetching contributors…

Cannot retrieve contributors at this time

101 lines (84 sloc) 1.933 kb
<meta http-equiv="Content-Type" content="text/html; charset=<%= encoding %>">
<style type="text/css">
#message_headers {
position: absolute;
top: 0px;
left: 0;
width: 100%;
height: 90px;
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: 100px;
padding: 1px;
float: left;
text-align: right;
font-weight: bold;
color: #7f7f7f;
}
#message_headers dd {
margin-left: 110px;
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: 100px !important;
}
</style>
<div id="message_headers">
<dl>
<dt>From:</dt>
<dd><%= from %></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>
<dt>Attachments:</dt>
<dd>
<% if @attachments.size > 0 %>
<% @attachments.each do |filename, path| %>
<a href="<%= path %>"><%= filename %></a>&nbsp;
<% end %>
<% else %>
None
<% end %>
</dd>
</dl>
<% if mail.multipart? %>
<p class="alternate">
<% if type == "plain" && mail.html_part %>
<a href="rich.html">View HTML version</a>
<% elsif type == "rich" && mail.text_part %>
<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 %>
Jump to Line
Something went wrong with that request. Please try again.