Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
111 lines (92 sloc) 2.12 KB
<meta http-equiv="Content-Type" content="text/html; charset=<%= encoding %>">
<style type="text/css">
#message_headers {
width: 100%;
padding: 10px 0 0 0;
margin: 0;
background: #fff;
font-size: 12px;
font-family: "Lucida Grande";
border-bottom: 1px solid #dedede;
overflow: auto;
}
#message_headers dl {
float: left;
margin: 0 0 10px 0;
padding: 0;
}
#message_headers dt {
width: 92px;
padding: 1px;
margin: 0;
float: left;
text-align: right;
font-weight: bold;
color: #7f7f7f;
}
#message_headers dd {
margin: 0 0 0 102px;
padding: 1px;
}
#message_headers p.alternate {
float: right;
margin: 0;
}
#message_headers p.alternate a {
color: #09c;
}
pre#message_body {
padding: 10px;
word-wrap: break-word;
}
</style>
<div id="message_headers">
<dl>
<dt>From:</dt>
<dd><%= h from %></dd>
<% unless reply_to.empty? %>
<dt>Reply-To:</dt>
<dd><%= h reply_to %></dd>
<% end %>
<dt>Subject:</dt>
<dd><strong><%= h mail.subject %></strong></dd>
<dt>Date:</dt>
<dd><%= Time.now.strftime("%b %e, %Y %I:%M:%S %p %Z") %></dd>
<% unless to.empty? %>
<dt>To:</dt>
<dd><%= h to %></dd>
<% end %>
<% if mail.cc %>
<dt>CC:</dt>
<dd><%= h mail.cc.join(", ") %></dd>
<% end %>
<% if mail.bcc %>
<dt>BCC:</dt>
<dd><%= h mail.bcc.join(", ") %></dd>
<% end %>
<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"><%= auto_link(h(body)) %></pre>
<% else %>
<%= body %>
<% end %>
Jump to Line
Something went wrong with that request. Please try again.