8 lines
378 B
Plaintext
8 lines
378 B
Plaintext
%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= link_to "❌", micropost, method: :delete, data: { confirm: 'Are you sure?' }
|
|
%span.content= micropost.content
|