<%= blog_post_index.created_at.strftime("%B") %>
<%= blog_post_index.created_at.strftime("%d") %>
<%= blog_post_index.user_id %>
-
<%= blog_post_index.created_at.strftime("%a %B %d %Y") %>
-
<%= blog_post_index.user_id %>
<% if blog_post_index.pstimage.attached? %>
<% end %>
<%= truncate(blog_post_index.psttext, :length => 120, :escape => false) %>
-
<%= link_to blog_article_path(blog_post_index), class: "btn btn-secondary btn-sm" do %>
Read More
<% end %>
-
64 Comments
<% if current_user.admin! %>
-
<%= link_to edit_article_post_path(blog_post_index), class: "btn btn-secondary btn-sm" do %>
Edit Post
<% end %>
-
<%= link_to blog_post_index, class: "btn btn-danger btn-sm", method: :delete, data: { confirm: 'Are you sure?' } do %>
Delete Post
<% end %>
<% end %>
<% end %>