aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog/categories/index.html.erb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-25 16:15:02 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-25 16:15:02 +1200
commit11f16cd66e86396bda09e3bdede88fd08f35bc1c (patch)
tree9bef7375acf9fc9b79865ff23d42ca0f823e6182 /app/views/admin/blog/categories/index.html.erb
parent4fbe3219386f68654ffaf123e30a219b4959de78 (diff)
downloadrefinerycms-blog-11f16cd66e86396bda09e3bdede88fd08f35bc1c.tar.gz
refinerycms-blog-11f16cd66e86396bda09e3bdede88fd08f35bc1c.tar.bz2
refinerycms-blog-11f16cd66e86396bda09e3bdede88fd08f35bc1c.zip
Added categories section
Diffstat (limited to 'app/views/admin/blog/categories/index.html.erb')
-rw-r--r--app/views/admin/blog/categories/index.html.erb30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/views/admin/blog/categories/index.html.erb b/app/views/admin/blog/categories/index.html.erb
new file mode 100644
index 0000000..824b1c3
--- /dev/null
+++ b/app/views/admin/blog/categories/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_categories.any? %>
+ <%= render :partial => "blog_categories",
+ :collection => @blog_categories %>
+ <% else %>
+ <p><%= t('admin.search_no_results') %></p>
+ <% end %>
+ <% else %>
+ <% if @blog_categories.any? %>
+ <%= will_paginate @blog_categories,
+ :previous_label => '&laquo;',
+ :next_label => '&raquo;' %>
+
+ <%= render :partial => "sortable_list" %>
+
+ <%= will_paginate @blog_categories,
+ :previous_label => '&laquo;',
+ :next_label => '&raquo;' %>
+ <% else %>
+ <p>
+ <strong>
+ <%= t('.no_items_yet') %>
+ </strong>
+ </p>
+ <% end %>
+ <% end %>
+</div> \ No newline at end of file