aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/admin/posts/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/blog/admin/posts/index.html.erb')
-rw-r--r--app/views/refinery/blog/admin/posts/index.html.erb22
1 files changed, 8 insertions, 14 deletions
diff --git a/app/views/refinery/blog/admin/posts/index.html.erb b/app/views/refinery/blog/admin/posts/index.html.erb
index 19c4ccf..03da02c 100644
--- a/app/views/refinery/blog/admin/posts/index.html.erb
+++ b/app/views/refinery/blog/admin/posts/index.html.erb
@@ -1,21 +1,15 @@
<%= render '/refinery/blog/admin/submenu' %>
+<%= render 'refinery/admin/search_header', :url => request.path %>
<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 %>
+ <% if @posts.any? %>
+ <%= will_paginate @posts %>
- <%= render "sortable_list" %>
+ <%= render "sortable_list" %>
- <%= will_paginate @posts %>
+ <%= will_paginate @posts %>
+ <% else %>
+ <% if searching? %>
+ <%= t('no_results', :scope => 'refinery.admin.search') %>
<% else %>
<p>
<strong>