aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/blog/admin/posts/uncategorized.html.erb
blob: 21e7c043ee77aca1e7c5f196d17e7ebf931f4912 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                            

                     

                                                                
                        
                                          
                                         
              
                                                                      

             

                                 
 
                                   
 
                                 


                
                                   




                 
<%= 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>