blob: 6b5a3e8509f8a8f14bcb828b0afde26495f25eea (
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
|
<%= render :partial => '/admin/blog/submenu' %>
<div id='records'>
<% if searching? %>
<h2><%= t('admin.search_results_for', :query => params[:search]) %></h2>
<% if @blog_comments.any? %>
<%= render :partial => "blog_comments",
:collection => @blog_comments %>
<% else %>
<p><%= t('admin.search_no_results') %></p>
<% end %>
<% else %>
<% if @blog_comments.any? %>
<%= will_paginate @blog_comments,
:previous_label => '«',
:next_label => '»' %>
<%= render :partial => "sortable_list" %>
<%= will_paginate @blog_comments,
:previous_label => '«',
:next_label => '»' %>
<% else %>
<h3>
<%= t('.no_items_yet',
:type => (t("admin.blog.submenu.comments.#{action_name}").downcase unless action_name == 'index')) %>
</h3>
<% end %>
<% end %>
</div>
|