7 lines
347 B
Plaintext
7 lines
347 B
Plaintext
%li{id: "micropost-#{micropost.id}"}
|
|
%span= link_to micropost.micropostable.display_name, micropost.micropostable
|
|
%span.content= micropost.content
|
|
%span.timestamp Posted #{time_ago_in_words(micropost.created_at)} ago.
|
|
- if policy(micropost).destroy?
|
|
%span= link_to "❌", micropost, method: :delete, data: { confirm: 'Are you sure?' }
|