aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/admin/blog/categories/index.html.erb
blob: 938f23569303906190d6be7059e6cd18988c7c98 (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
<%= render :partial => '/admin/blog/submenu' %>
<div id='records'>
  <% if searching? %>
    <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
    <% if @blog_categories.any? %>
      <%= render :partial => "blog_categories",
                 :collection => @blog_categories %>
    <% else %>
      <p><%= t('search_no_results', :scope => 'admin') %></p>
    <% end %>
  <% else %>
    <% if @blog_categories.any? %>
      <%= paginate @blog_categories %>

      <%= render :partial => "sortable_list" %>

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