Soc/app/views/blog_posts/show.html.erb

12 lines
432 B
Plaintext
Raw Normal View History

2024-01-06 10:29:41 +00:00
<div id="blog_post_<%= @blog_post.id %>" class="blog_post">
2023-10-06 07:26:16 +00:00
<h2><%= @blog_post.title %></h2>
<p><%= @blog_post.content %></p>
<div class="created_at">
<%= link_to "Edit", edit_blog_post_path(@blog_post) if @blog_post.user == current_user %>
2023-10-16 07:06:26 +00:00
<%= "Updated at #{updated_at(@blog_post)} | " %>
2023-10-06 07:26:16 +00:00
<%= link_to @blog_post.created_at.strftime("%Y-%m-%d %H:%M"), @blog_post %>
</div>
</div>
2023-10-05 20:21:42 +00:00
<%= t(".discuss_post_html") %>