From 5899e11dd9be539abf5d5f59090be12486eef610 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 14 May 2014 19:55:17 +0800 Subject: [PATCH] filtering moved to partial --- app/views/admin/faqs/index.html.erb | 69 +---------------------------- 1 file changed, 2 insertions(+), 67 deletions(-) diff --git a/app/views/admin/faqs/index.html.erb b/app/views/admin/faqs/index.html.erb index 5fe2b02..851c4b7 100644 --- a/app/views/admin/faqs/index.html.erb +++ b/app/views/admin/faqs/index.html.erb @@ -1,73 +1,8 @@ -<% content_for :right_nav do %> - -
- <% @filter_fields.keys.each do |field| %> -
-
- <% @filter_fields[field].each do |val| %> - <%= link_to t(val[:title]), "#", :onclick => "filter.addFilter('filters[#{field}][]=#{val[:id]}')", :class => "btn btn-small #{is_filter_active?(field, val[:id])}" %> - <% end %> -
- -
- <% end %> -
-<% end %> +<%= render_filter @filter_fields %>
<%= render 'index'%>
-