From 54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 9 Aug 2010 21:06:54 +1200 Subject: Set up menu and what is to come. --- app/views/admin/blog/comments/index.html.erb | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/views/admin/blog/comments/index.html.erb (limited to 'app/views/admin/blog/comments/index.html.erb') 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' %> +
+ <% if searching? %> +

<%= t('admin.search_results_for', :query => params[:search]) %>

+ <% if @blog_comments.any? %> + <%= render :partial => "blog_comments", + :collection => @blog_comments %> + <% else %> +

<%= t('admin.search_no_results') %>

+ <% 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 %> +

+ + <%= t('.no_items_yet') %> + +

+ <% end %> + <% end %> +
\ No newline at end of file -- cgit v1.2.3