Browse files

print unidentified user

  • Loading branch information...
1 parent 3f6d281 commit 88c2bf17aa1a95f78c7c2d655a9b7df452a4536c @madhums madhums committed Aug 30, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 app/views/statuses/index.html.erb
View
8 app/views/statuses/index.html.erb
@@ -7,7 +7,13 @@
<table>
<% for status in @statuses %>
<tr>
- <td><b><p><%= h status.user.username+' :' if status.user %></p> </b></td>
+ <td>
+ <% if status.user %>
+ <p class="username"><%= h status.user.username %> : </p>
+ <% else %>
+ <p class="no-username">unidentified user : </p>
+ <% end %>
+ </td>
<td>
<p>
<%=h status.message %>

0 comments on commit 88c2bf1

Please sign in to comment.