Sha256: d4f231408a1c932c103f1447e4a4c4f5f4ea3d1b2e75ffd78bc54a8a64d5fb36
Contents?: true
Size: 595 Bytes
Versions: 14
Compression:
Stored size: 595 Bytes
Contents
- item_type = coll.length > 0 ? coll.first.class.table_name.humanize.pluralize : "Entries" - opts_arr = %w(10 15 20 25 30 40 50 75 100 All).map { |n| [n, n] } .outer-pagination %div.c_scaff_pagination = will_paginate coll %table{ style: "width: 100%" } %tr %td.page-info.left-page-info = page_entries_info coll, model: item_type %td.page-info.right-page-info = label_tag :per_page, "#{item_type} per page:" = select_tag(:per_page, options_for_select(opts_arr, (@selected_val || @per_page || 25)), :style => "width: 65px", :onchange => "set_per_page(this);")
Version data entries
14 entries across 14 versions & 1 rubygems