diff options
Diffstat (limited to 'app/views/admin/blog/comments')
-rw-r--r-- | app/views/admin/blog/comments/index.html.erb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/views/admin/blog/comments/index.html.erb b/app/views/admin/blog/comments/index.html.erb new file mode 100644 index 0000000..f27bae3 --- /dev/null +++ b/app/views/admin/blog/comments/index.html.erb @@ -0,0 +1,30 @@ +<%= 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 %> + <p> + <strong> + <%= t('.no_items_yet') %> + </strong> + </p> + <% end %> + <% end %> +</div>
\ No newline at end of file |