<%= comment.message %> <% if policy(comment).update? %> <% end %> <% if comment.edits? %>
Updated <%= local_time_ago(comment.updated_at) %>
<% else %>
<%= local_time_ago(comment.created_at) %>
<% end %>
<%= comment.user.name %>
<% if policy(comment).update? %> <%= render partial: 'comment_form', locals: {comment: comment, test_hash: comment.test_hash } %> <% end %>