diff options
Diffstat (limited to 'views/message.erb')
-rw-r--r-- | views/message.erb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/views/message.erb b/views/message.erb index 78823c2..ee700fd 100644 --- a/views/message.erb +++ b/views/message.erb @@ -4,16 +4,16 @@ <table class="table table-condensed ag-header-table"> <tr> <th class="ag-header-name-col">From:</th> - <td><%= h strip_email_domain(message['_source']['from']) %></td> + <td><%= h strip_email_headers(message['_source']['from']).first %></td> </tr> <tr> <th>To:</th> - <td><%= h strip_email_domain(message['_source']['to']) %></td> + <td><%= h strip_email_headers(message['_source']['to']).join ', ' %></td> </tr> - <% unless message['_source']['cc'] == nil or message['_source']['cc'] == '' %> + <% unless message['_source']['cc'] == nil or message['_source']['cc'] == [] %> <tr> <th>Cc:</th> - <td><%= h strip_email_domain(message['_source']['cc']) %></td> + <td><%= h strip_email_headers(message['_source']['cc']).join ', ' %></td> </tr> <% end %> <tr> @@ -72,7 +72,7 @@ <% children.each do |child| %> <tr> <td><a href="<%= child['_id'] %>"><%= h child['_source']['subject'] %></a></td> - <td><%= h strip_email_domain(child['_source']['from']) %></td> + <td><%= h strip_email_headers(child['_source']['from']).first %></td> </tr> <% end %> </table> |