<% content_for :secondary do %>
  <ul class="list">
	  <li><%= link_to t('blog.new_post'), new_panel_new_blog_back_end_post_path, :class => 'seclink1' %></li>
  </ul>
<% end -%>

<%= flash_messages %>

<h1><%= t('blog.list_post') %></h1>

<table>
  <tr>
    <th><%= t('blog.title') %></th>
    <th><%= t('blog.body') %></th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @posts.each do |post| %>
  <tr>
    <td><%= post.title %></td>
    <td><%= truncate(post.body,:length=>15) %></td>
    <td><%= link_to t('blog.new_auth'), init_admin_object_auths_path("Post",post) %></td>
    <td><%= link_to t('blog.show'), panel_new_blog_back_end_post_path(post) %></td>
    <td><%= link_to t('blog.edit'), edit_panel_new_blog_back_end_post_path(post) %></td>
    <td><%= link_to t('blog.delete'), panel_new_blog_back_end_post_path(post), :confirm => t('blog.sure?'), :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

