aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/admin/comments/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/blog/admin/comments/index.html.erb')
-rw-r--r--app/views/refinery/blog/admin/comments/index.html.erb31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/refinery/blog/admin/comments/index.html.erb b/app/views/refinery/blog/admin/comments/index.html.erb
new file mode 100644
index 0000000..059ef59
--- /dev/null
+++ b/app/views/refinery/blog/admin/comments/index.html.erb
@@ -0,0 +1,31 @@
+<%= render :partial => '/refinery/admin/blog/submenu' %>
+<div id='records'>
+ <% if searching? %>
+ <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
+ <% if @blog_comments.any? %>
+ <%= will_paginate @blog_comments %>
+
+ <ul>
+ <%= render :partial => "blog_comments",
+ :collection => @blog_comments %>
+ </ul>
+
+ <%= will_paginate @blog_comments %>
+ <% else %>
+ <p><%= t('search_no_results', :scope => 'admin') %></p>
+ <% end %>
+ <% else %>
+ <% if @blog_comments.any? %>
+ <%= will_paginate @blog_comments %>
+
+ <%= render :partial => "sortable_list" %>
+
+ <%= will_paginate @blog_comments %>
+ <% else %>
+ <h3>
+ <%= t('.no_items_yet',
+ :type => action_name.gsub('index', 'new')).downcase %>
+ </h3>
+ <% end %>
+ <% end %>
+</div>