aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/blog/admin/categories/index.html.erb
blob: 451abc5ff9fb86e4b39df4c293c22f2e8ae0da1d (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 @categories.any? %>
      <%= render :partial => "blog_categories",
                 :collection => @categories %>
    <% else %>
      <p><%= t('no_results', :scope => 'refinery.admin.search') %></p>
    <% end %>
  <% else %>
    <% if @categories.any? %>
      <%= will_paginate @categories %>

      <%= render "sortable_list" %>

      <%= will_paginate @categories %>
    <% else %>
      <p>
        <strong>
          <%= t('.no_items_yet', :create => t('new', :scope => 'refinery.blog.admin.submenu.categories')) %>
        </strong>
      </p>
    <% end %>
  <% end %>
</div>