diff options
author | Philip Arndt <p@arndt.io> | 2013-08-11 22:37:49 -0700 |
---|---|---|
committer | Philip Arndt <p@arndt.io> | 2013-08-11 22:37:49 -0700 |
commit | 0b27bed872bcfc95b0e1688151b0dc20789b2b54 (patch) | |
tree | ca37ed264094228cd3813b4012df931114977ea4 /app/views/refinery/blog/admin/comments | |
parent | faa6922bf8d71ae5c481afcbc7b2e54ec18e6930 (diff) | |
parent | 433c541012bd44453d5e9fb826667916706f70fe (diff) | |
download | refinerycms-blog-0b27bed872bcfc95b0e1688151b0dc20789b2b54.tar.gz refinerycms-blog-0b27bed872bcfc95b0e1688151b0dc20789b2b54.tar.bz2 refinerycms-blog-0b27bed872bcfc95b0e1688151b0dc20789b2b54.zip |
Merge pull request #345 from refinery/use_refinerycms-acts-as-indexed_for_search
Use refinerycms-acts-as-indexed for search functionality.
Diffstat (limited to 'app/views/refinery/blog/admin/comments')
-rw-r--r-- | app/views/refinery/blog/admin/comments/index.html.erb | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/app/views/refinery/blog/admin/comments/index.html.erb b/app/views/refinery/blog/admin/comments/index.html.erb index 53c368e..c09e59b 100644 --- a/app/views/refinery/blog/admin/comments/index.html.erb +++ b/app/views/refinery/blog/admin/comments/index.html.erb @@ -1,30 +1,21 @@ -<%= render '/refinery/blog/admin/submenu' %> +<%= render 'refinery/blog/admin/submenu' %> +<%= render 'refinery/admin/search_header', :url => request.path %> <div id='records'> - <% if searching? %> - <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2> - <% if @comments.any? %> - <%= will_paginate @comments %> + <% if @comments.any? %> + <%= will_paginate @comments %> - <ul> - <%= render :partial => "blog_comments", - :collection => @comments %> - </ul> + <%= render "sortable_list" %> - <%= will_paginate @comments %> - <% else %> - <p><%= t('search_no_results', :scope => 'admin') %></p> - <% end %> + <%= will_paginate @comments %> <% else %> - <% if @comments.any? %> - <%= will_paginate @comments %> - - <%= render "sortable_list" %> - - <%= will_paginate @comments %> + <% if searching? %> + <%= t('no_results', :scope => 'refinery.admin.search') %> <% else %> - <h3> - <%= t('.no_items_yet', :type => action_name.gsub('index', 'new').downcase) %> - </h3> - <% end %> + <p> + <strong> + <%= t('.no_items_yet', :type => action_name.gsub('index', 'new').downcase) %> + </strong> + </p> <% end %> +<% end %> </div> |