Description:
hides deleted user name from messages
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r343:e57e3f0af25e - - 1 file changed: 6 inserted, 2 deleted

@@ -1,7 +1,11
1 %tr
1 %tr
2 - %td=h short_message.sender.full_name
2 + - if short_message.sender
3 + %td=h short_message.sender.full_name
4 + - else
5 + %td (user deleted)
3 %td= "#{short_message.created_at}"
6 %td= "#{short_message.created_at}"
4 %td=h truncate(short_message.body)
7 %td=h truncate(short_message.body)
5 %td
8 %td
6 - = link_to "[reply]", :action => 'show', :id => short_message.id
9 + - if short_message.sender
10 + = link_to "[reply]", :action => 'show', :id => short_message.id
7 = link_to "[hide]", :action => 'hide', :id => short_message.id
11 = link_to "[hide]", :action => 'hide', :id => short_message.id
You need to be logged in to leave comments. Login now