aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/blog/admin/posts/index.html.erb
blob: 19c4ccf2c90fc233978b5727155de4937d3679b7 (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? %>
    <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>