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