<% phc_title "Article Manager" %> <% phc_title_tagline "Article Index" %>

<%= yield(:phc_title) %>

<%= link_to phcpresspro.new_articles_post_path, class: "btn btn-primary" do %> New Article Post <% end %>
<%= yield(:phc_title_tagline) %>
<% @articles_posts.each do |articles_post| %> <% end %>
Title Text Preview Article Status
<%= articles_post.psttitle %> <%= truncate(articles_post.psttext, :length => 80, :escape => false) %> <%= articles_post.pststatus %>
<%= link_to 'Edit', phcpresspro.edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %> <%= link_to 'Trash', phcpresspro.articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>