aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/admin/posts/uncategorized.html.erb
blob: 21e7c043ee77aca1e7c5f196d17e7ebf931f4912 (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? %>
      <%= render :partial => "blog_posts",
                 :collection => @posts %>
    <% 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') %>
        </strong>
      </p>
    <% end %>
  <% end %>
</div>