<% field[:values].each do |value| %> <% field_title = field[:type].eql?('objects') ? value.send(field[:object_field]) : t(value) %> <% field_id = field[:type].eql?('objects') ? value.id : value %> <%= link_to field_title, url_for(:filter => @filter, :new_filter => {:type => field[:translation], :id => field_id}, :sort => params[:sort], :direction => params[:direction], :sort_options => params[:sort_options]), :class => "btn btn-small #{is_filter_active?(field[:translation], field_id)}" %> <% end %>
<%= render :partial => 'admin/default_index/clear_filters', :locals => {:type => field[:translation]} %>