2023-10-05 18:46:09 +00:00
|
|
|
<div id="blog_post_<%= blog_post.id %>" class="blog_post">
|
2023-10-06 07:26:16 +00:00
|
|
|
<h2><%= link_to blog_post.title, blog_post %></h2>
|
|
|
|
<p><%= blog_post.summary %></p>
|
2023-10-05 18:46:09 +00:00
|
|
|
<div class="created_at">
|
|
|
|
<%= link_to "Edit", edit_blog_post_path(blog_post) if blog_post.user == current_user %>
|
|
|
|
<%= link_to blog_post.created_at.strftime("%Y-%m-%d %H:%M"), blog_post %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-06 20:31:14 +00:00
|
|
|
<hr>
|