Class: WillPaginate::LinkRenderer
- Inherits:
-
Object
- Object
- WillPaginate::LinkRenderer
- Defined in:
- vendor/plugins/blacklight/lib/will_paginate_link_renderer.rb
Overview
Override WillPaginate - inserts commas into large page numbers example: 443719 becomes 443,719
Direct Known Subclasses
Instance Method Summary (collapse)
- - (Object) page_link_or_span(page, span_class = 'current', text = nil) (also: #orig_page_link_or_span)
Instance Method Details
- (Object) page_link_or_span(page, span_class = 'current', text = nil) Also known as: orig_page_link_or_span
14 15 16 17 18 |
# File 'vendor/plugins/blacklight/lib/will_paginate_link_renderer.rb', line 14 def page_link_or_span(page, span_class = 'current', text = nil) # format the page number, unless there is first/last page text (the last arg) text ||= @template.number_with_delimiter(page) orig_page_link_or_span(page, span_class, text) end |