<% phc_title "Articles 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) %> <%= articles_post.pststatus %>
<%= link_to 'Edit', edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %> <%= link_to 'Trash', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>