<% phc_title "Article Manager" %> <% phc_title_tagline "Article Index" %> <% phc_breadcrumb_one link_to "Article Index", phcpresspro.article_posts_path %> <% phc_breadcrumb_two yield(:phc_title_tagline) %>

<%= yield(:phc_title) %>

<%= link_to phcpresspro.new_article_post_path, class: "btn btn-primary" do %> Create a New Article <% end %>
<%= yield(:phc_title_tagline) %>
<% @article_posts.each do |article_post| %> <% end %>
Post Headline Post Preview Post Status
<%= article_post.psttitle %> <%= truncate(article_post.psttext, :length => 80, :escape => false) %> <%= article_post.pststatus.capitalize %>
<%= link_to 'Edit Post', edit_article_post_path(article_post), class: "btn btn-primary btn-xs" %> <%= link_to 'Trash Post', article_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>