= image_tag("loading.gif", size: 'thumb', class: "spinner", style: "display: none;") = paginate .per_page_options %span.per_page_label = t('entities_per_page', entity: t(controller_name)) - [ 10, 20, 30, 50 ].each do |count| - if count == @per_page.to_i %em.current= count - else - q = params[:q] ? params[:q].permit! : nil = link_to count, send("redraw_#{controller.controller_name}_path", per_page: count, query: params[:query], q: params[:q]), remote: true