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 = "&larr; " + _t("Previous")
      next_label = _t("Next") + " &rarr;"

      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

Version Path
typus-3.0.2 lib/typus/pagination.rb
typus-3.0.1 lib/typus/pagination.rb
typus-3.0.0 lib/typus/pagination.rb
typus-1.0.0.pre13 lib/typus/pagination.rb
typus-1.0.0.pre12 lib/typus/pagination.rb
typus-1.0.0.pre11 lib/typus/pagination.rb