aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2007-12-24 17:14:33 +0000
committerfrancis <francis>2007-12-24 17:14:33 +0000
commit2a3f70b226c078916959bd76d272ea6626130ad7 (patch)
tree1c68a158bd2fbb4416e6e553e5f595522aaca519
parent8b6f0a936e3d989fb6002212560adb58d6b3600d (diff)
Don't show friendly name if it is an email
-rw-r--r--app/views/request/_correspondence.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/request/_correspondence.rhtml b/app/views/request/_correspondence.rhtml
index ea7ca4e6c..6981a25b0 100644
--- a/app/views/request/_correspondence.rhtml
+++ b/app/views/request/_correspondence.rhtml
@@ -24,8 +24,8 @@
<%= render :partial => 'bubble', :locals => { :body => incoming_message.get_body_for_display(@collapse_quotes) } %>
<p class="xspeaker">
- <% if incoming_message.mail.from %>
- <%= incoming_message.mail.friendly_from %> of
+ <% if incoming_message.mail.from and (not incoming_message.mail.friendly_from.include?('@')) %>
+ <%= incoming_message.mail.friendly_from %>
<% end %>
<%= public_body_link(@info_request.public_body) %>
<% if incoming_message.contains_information %>