blob: da11a1af9088d178f2e53dd062ab8b7b7e7eb4b0 (
plain) (
tree)
|
|
<%= render :partial => '/admin/blog/submenu' %>
<div id='records'>
<% if searching? %>
<h2><%= t('shared.admin.search.results_for', :query => params[:search]) %></h2>
<% if @blog_posts.any? %>
<%= render :partial => "blog_posts",
:collection => @blog_posts %>
<% else %>
<p><%= t('shared.admin.search.no_results') %></p>
<% end %>
<% else %>
<% if @blog_posts.any? %>
<%= will_paginate @blog_posts %>
<%= render :partial => "sortable_list" %>
<%= will_paginate @blog_posts %>
<% else %>
<p>
<strong>
<%= t('.no_items_yet', :create => t('admin.blog.submenu.posts.new')) %>
</strong>
</p>
<% end %>
<% end %>
</div>
|