summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-02-22 01:15:37 +0100
committerAlex Legler <alex@a3li.li>2015-02-22 01:15:37 +0100
commitb4349612cb3a0481d66645c1f60dad81e89f607e (patch)
treeeef2dc5412f4caa5378c54ba984cded42e680098
parentcompact the headers table a bit (diff)
downloadfrontend-b4349612cb3a0481d66645c1f60dad81e89f607e.tar.gz
frontend-b4349612cb3a0481d66645c1f60dad81e89f607e.tar.bz2
frontend-b4349612cb3a0481d66645c1f60dad81e89f607e.zip
CC nil?
-rw-r--r--views/message.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/message.erb b/views/message.erb
index b0f32a8..181f532 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -9,10 +9,12 @@
<th>To:</th>
<td colspan="3"><%= h strip_email_domain(message['_source']['to']) %></td>
</tr>
+ <% unless message['_source']['cc'] == nil or message['_source']['cc'] == '' %>
<tr>
<th>Cc:</th>
<td colspan="3"><%= h strip_email_domain(message['_source']['cc']) %></td>
</tr>
+ <% end %>
<tr>
<th>Subject:</th>
<td colspan="3"><strong><%= h message['_source']['subject'] %></strong></td>