Sha256: 88a7fd6ff53c76afa86c6b69a544fdbeb2560b46eb5b77d617b0f37810523727

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

- item_type = coll.length > 0 ? coll.first.class.table_name.humanize.pluralize : "Entries"
.pagination
	= page_entries_info coll, model: item_type
	%br/ 
	= will_paginate coll
	- opts_arr = %w(10 15 20 25 30 40 50 75 100 All).map { |n| [n, n] }
	%div 
		= 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

2 entries across 2 versions & 1 rubygems

Version Path
controller_scaffolding-0.1.5 lib/generators/haml/controller/partials/_pagination.html.haml
controller_scaffolding-0.0.52 lib/generators/haml/controller/partials/_pagination.html.haml