Sha256: 45fdd4f01f6fb1930e53fd7cbe24fdfc152cf8f80fc5775b5e1e07802bf5da03
Contents?: true
Size: 507 Bytes
Versions: 8
Compression:
Stored size: 507 Bytes
Contents
= will_paginate :params => {:action => :index} - entities = instance_variable_get("@#{controller_name}") - if entities.count > @per_page.to_i .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 = link_to count, send("redraw_#{controller.controller_name}_path", :per_page => count, :query => params[:query], :q => params[:q])
Version data entries
8 entries across 8 versions & 1 rubygems