# HG changeset patch # User Jittat Fakcharoenphol # Date 2012-10-20 03:26:41 # Node ID e57e3f0af25e4748a8d77b50f636adb62a38e4f5 # Parent fee7f57d2bbe859813df9677b11ab981ce632298 hides deleted user name from messages diff --git a/app/views/messages/_short_message.html.haml b/app/views/messages/_short_message.html.haml --- a/app/views/messages/_short_message.html.haml +++ b/app/views/messages/_short_message.html.haml @@ -1,7 +1,11 @@ %tr - %td=h short_message.sender.full_name + - if short_message.sender + %td=h short_message.sender.full_name + - else + %td (user deleted) %td= "#{short_message.created_at}" %td=h truncate(short_message.body) %td - = link_to "[reply]", :action => 'show', :id => short_message.id + - if short_message.sender + = link_to "[reply]", :action => 'show', :id => short_message.id = link_to "[hide]", :action => 'hide', :id => short_message.id