Class: Paginate::Renderer::More

Inherits:
Base
  • Object
show all
Defined in:
lib/paginate/renderer/more.rb

Instance Attribute Summary

Attributes inherited from Base

#options, #processor, #view_context

Instance Method Summary collapse

Methods inherited from Base

#initialize, #next_url, #previous_url, #url_for

Constructor Details

This class inherits a constructor from Paginate::Renderer::Base

Instance Method Details

#more_labelObject



4
5
6
# File 'lib/paginate/renderer/more.rb', line 4

def more_label
  I18n.t("paginate.more")
end

#renderObject



8
9
10
11
12
13
14
15
16
# File 'lib/paginate/renderer/more.rb', line 8

def render
  return unless processor.next_page?

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