<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><%= post.body %></td>
    <td><%= link_to t('blog.show'), panel_blog_post_path(post) %></td>
    <td><%= link_to t('blog.edit'), edit_panel_blog_post_path(post) %></td>
    <td><%= link_to t('blog.delete'), panel_blog_post_path(post), :confirm => t('blog.sure?'), :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to t('blog.new_post'), new_panel_blog_post_path %>