aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-05-08 12:31:36 +0000
committerfrancis <francis>2008-05-08 12:31:36 +0000
commit71dc6082068ce41237ab35e2f442a6d70b3b6e39 (patch)
treebbab6f286ccaa670aef3ca048d8f545d3a4d31c6
parente7435c934b4a17224a570a3cf1347d1f25ca7f55 (diff)
Render emails in a readable form
-rw-r--r--app/views/admin_request/show.rhtml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/admin_request/show.rhtml b/app/views/admin_request/show.rhtml
index 0c9ed1fe9..0099730cf 100644
--- a/app/views/admin_request/show.rhtml
+++ b/app/views/admin_request/show.rhtml
@@ -82,7 +82,11 @@
<tr class="<%= cycle('odd', 'even') %>">
<td><%=h incoming_message.id %></td>
<% for column in IncomingMessage.content_columns.map { |c| c.name } %>
- <td><%=h incoming_message.send(column) %></td>
+ <% if column == 'raw_data' %>
+ <td><%=h(incoming_message.send(column)).gsub!(/\n/, '<br>') %></td>
+ <% else %>
+ <td><%=h incoming_message.send(column) %></td>
+ <% end %>
<% end %>
<td>
<% form_tag '../destroy_incoming' do %>