Sha256: c605773c4d6a85f82acb49c3fedb5aa934e43bb940633d159dc943ab438a3c11
Contents?: true
Size: 416 Bytes
Versions: 6
Compression:
Stored size: 416 Bytes
Contents
module Typus class Pagination < WillPaginate::ViewHelpers::LinkRenderer def to_html previous_label = "← " + _t("Previous") next_label = _t("Next") + " →" html = [] html << previous_or_next_page(@collection.previous_page, previous_label, 'left') html << previous_or_next_page(@collection.next_page, next_label, 'right') html_container(html) end end end
Version data entries
6 entries across 6 versions & 1 rubygems