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

8 lines
264 B
Plaintext

<div class="micropost">
<%= micropost.content %>
<div class="created_at">
<%= 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>