diff options
Diffstat (limited to 'app/views/refinery/admin/blog/categories/index.html.erb')
-rw-r--r-- | app/views/refinery/admin/blog/categories/index.html.erb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/views/refinery/admin/blog/categories/index.html.erb b/app/views/refinery/admin/blog/categories/index.html.erb new file mode 100644 index 0000000..5d17d42 --- /dev/null +++ b/app/views/refinery/admin/blog/categories/index.html.erb @@ -0,0 +1,26 @@ +<%= render :partial => '/admin/blog/submenu' %> +<div id='records'> + <% if searching? %> + <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2> + <% if @blog_categories.any? %> + <%= render :partial => "blog_categories", + :collection => @blog_categories %> + <% else %> + <p><%= t('search_no_results', :scope => 'admin') %></p> + <% end %> + <% else %> + <% if @blog_categories.any? %> + <%= will_paginate @blog_categories %> + + <%= render :partial => "sortable_list" %> + + <%= will_paginate @blog_categories %> + <% else %> + <p> + <strong> + <%= t('.no_items_yet', :create => t('new', :scope => 'admin.blog.submenu.categories')) %> + </strong> + </p> + <% end %> + <% end %> +</div> |