<% phc_title "Code Snippet Manager" %> <% phc_title_tagline "Code Snippet Index" %> <% phc_breadcrumb_one yield(:phc_title_tagline) %> <% phc_breadcrumb_two link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>

<%= yield(:phc_title) %>

<%= yield(:phc_title) %>

<% @snippet_posts.each do |snippet_post| %> <% end %>
Snippet Title Snippet Summary
<%= snippet_post.snippet_post_title %> <%= truncate(snippet_post.snippet_post_code, :length => 80, :escape => false) %>
<%= link_to "Snippet Details", snippet_post, class: "btn btn-purple btn-xs" %> <%= link_to "Update Snippet", edit_snippet_post_path(snippet_post), class: "btn btn-primary btn-xs" %> <%= link_to "Remove Snippet", snippet_post, method: :delete, data: { confirm: "Are you sure? This will aslo delte the snippet urls." }, class: "btn btn-danger btn-xs" %>
<%= link_to phcdevworks_scripts.new_snippet_post_path, class: "btn btn-primary btn-sm" do %> Add a New Code Snippet <% end %>