%li.micropost{id: "micropost-#{micropost.id}"}
  %div
    %span.display-name= link_to micropost.micropostable.display_name, micropost.micropostable
    %span.timestamp #{time_ago_in_words(micropost.created_at)} ago.
    - if policy(micropost).destroy?
      %span.delete.emoji= link_to "❌", micropost, method: :delete, data: { confirm: 'Delete Post. Are you sure?' }
      %span.delete.text= link_to "Delete", micropost, method: :delete, data: { confirm: 'Delete Post. Are you sure?' }
  %span.content= micropost.content
