<article class="media comment">
    <div class="media-left">
        <%= gravatar_image_tag comment.author.email,
            alt: comment.author.name,
            gravatar: { default: :identicon, size: 50 }
        %>
    </div>
    <div class="media-body">
        <div class="comment-byline">
            <%= comment_author comment %> on <%= comment_time comment %>
        </div>
        <%= comment.comment %>
    </div>
</article>


<article class="media comment">
    <div class="media-left">
        <%= gravatar_image_tag comment.author.email,
            alt: comment.author.name,
            gravatar: { default: :identicon, size: 50 }
        %>
    </div>
    <div class="media-body">
        <div class="comment-byline">
            <%= comment_author comment %> on <%= comment_time comment %>
        </div>
        <%= comment.comment %>
        <% if policy(comment).destroy? %>
            <%= form_for [comment.commentable, comment], layout: :inline, method: :delete do |form| %>
                <%= form.submit '[Delete]', class: 'btn-xs', context: :link %>
            <% end %>
        <% end %>
    </div>
</article>


Add a delete button to comments.
Add a delete button to comments.

Only if the user has permission.
