Class: WillPaginate::LinkRenderer

Inherits:
Object
  • Object
show all
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

PrevNextLinks

Instance Method Summary (collapse)

Instance Method Details



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