aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/admin/comments/index.html.erb
blob: 53c368ed4d7f0726638de3f0835a13006d70e09a (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
28
29
30
<%= render '/refinery/blog/admin/submenu' %>
<div id='records'>
  <% if searching? %>
    <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
    <% if @comments.any? %>
      <%= will_paginate @comments %>

      <ul>
        <%= render :partial => "blog_comments",
                   :collection => @comments %>
      </ul>

      <%= will_paginate @comments %>
    <% else %>
      <p><%= t('search_no_results', :scope => 'admin') %></p>
    <% end %>
  <% else %>
    <% if @comments.any? %>
      <%= will_paginate @comments %>

      <%= render "sortable_list" %>

      <%= will_paginate @comments %>
    <% else %>
      <h3>
        <%= t('.no_items_yet', :type => action_name.gsub('index', 'new').downcase) %>
      </h3>
    <% end %>
  <% end %>
</div>