2011-11-20 04:59:04 +00:00
|
|
|
<% content_for :secondary do %>
|
|
|
|
<ul class="list">
|
2011-12-20 08:47:17 +00:00
|
|
|
<li><%= link_to t('blog.new_post'), new_panel_blog_back_end_post_path, :class => 'seclink1' %></li>
|
2011-11-20 04:59:04 +00:00
|
|
|
</ul>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
<%= flash_messages %>
|
|
|
|
|
2011-11-18 08:43:14 +00:00
|
|
|
<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>
|
2011-11-20 04:59:04 +00:00
|
|
|
<td><%= truncate(post.body,:length=>15) %></td>
|
2011-12-20 08:47:17 +00:00
|
|
|
<td><%= link_to t('blog.show'), panel_blog_back_end_post_path(post) %></td>
|
|
|
|
<td><%= link_to t('blog.edit'), edit_panel_blog_back_end_post_path(post) %></td>
|
|
|
|
<td><%= link_to t('blog.delete'), panel_blog_back_end_post_path(post), :confirm => t('blog.sure?'), :method => :delete %></td>
|
2011-11-18 08:43:14 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|