diff options
Diffstat (limited to 'app/views/admin_request/show.rhtml')
-rw-r--r-- | app/views/admin_request/show.rhtml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/admin_request/show.rhtml b/app/views/admin_request/show.rhtml index 54b307cf9..7a5deb7d7 100644 --- a/app/views/admin_request/show.rhtml +++ b/app/views/admin_request/show.rhtml @@ -110,12 +110,16 @@ <th>Actions</th> </tr> -<% for comment in @info_request.comments.find(:all, :order => 'created_at') %> +<% for comment in @info_request.comments %> <tr class="<%= cycle('odd', 'even') %>"> <td><%=h comment.id %></td> <td><%= user_both_links(comment.user) %></td> <% for column in Comment.content_columns.map { |c| c.name } %> - <td><%=h comment.send(column) %></td> + <% if column == 'body' && !comment.visible %> + <td><s><%=h comment.send(column) %></s></td> + <% else %> + <td><%=h comment.send(column) %></td> + <% end %> <% end %> <td> <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %> |