blob: 19c4ccf2c90fc233978b5727155de4937d3679b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<%= render '/refinery/blog/admin/submenu' %>
<div id='records'>
<% if searching? %>
<h2><%= t('results_for', :scope => 'refinery.admin.search', :query => params[:search]) %></h2>
<% if @posts.any? %>
<ul>
<%= render :partial => "post", :collection => @posts %>
</ul>
<% else %>
<p><%= t('no_results', :scope => 'refinery.admin.search') %></p>
<% end %>
<% else %>
<% if @posts.any? %>
<%= will_paginate @posts %>
<%= render "sortable_list" %>
<%= will_paginate @posts %>
<% else %>
<p>
<strong>
<%= t('.no_items_yet', :create => t('new', :scope => 'refinery.blog.admin.submenu.posts')) %>
</strong>
</p>
<% end %>
<% end %>
</div>
|