Sha256: c3efb673d5dd8334096820df7e1b17e19e613a801bbbd02598becfd66e96732a

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

module Paginate
  module Renderer
    class More < Base
      def more_label
        I18n.t("paginate.more")
      end

      def render
        return unless processor.next_page?

        <<-HTML.html_safe
          <p class="paginate">
            <a class="more" href="#{next_url}" title="#{more_label}">#{more_label}</a>
          </p>
        HTML
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
paginate-4.0.1 lib/paginate/renderer/more.rb
paginate-4.0.0 lib/paginate/renderer/more.rb
paginate-3.0.0 lib/paginate/renderer/more.rb