Soc/app/views/microposts/_micropost.html.erb

8 lines
264 B
Plaintext
Raw Normal View History

<div class="micropost">
<%= micropost.content %>
<div class="created_at">
2023-10-05 18:05:53 +00:00
<%= link_to "Edit", edit_micropost_path(micropost) if micropost.user == current_user %>
<%= link_to micropost.created_at.strftime("%Y-%m-%d %H:%M"), micropost %>
</div>
</div>