diff options
author | Philip Arndt <parndt@gmail.com> | 2010-08-09 21:06:54 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-08-09 21:06:54 +1200 |
commit | 54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45 (patch) | |
tree | 62999b848f1c9c2054627901bc1eecc4a8651fb2 /app/views/admin/blog/comments/index.html.erb | |
parent | 832a0e4866cc0dd33dc6c1c4d5dc75e35152e553 (diff) | |
download | refinerycms-blog-54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45.tar.gz refinerycms-blog-54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45.tar.bz2 refinerycms-blog-54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45.zip |
Set up menu and what is to come.
Diffstat (limited to 'app/views/admin/blog/comments/index.html.erb')
-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 |