Method: CCS::Components::GovUK::Pagination::Increment::Previous#render
- Defined in:
- lib/ccs/components/govuk/pagination/increment/previous.rb
#render ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the previous link in the pagination
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/ccs/components/govuk/pagination/increment/previous.rb', line 25 def render tag.div(class: 'govuk-pagination__prev') do super do concat(pagination_icon) concat(tag.span(class: pagination_text_classes) do concat(text) concat(tag.span(' page', class: 'govuk-visually-hidden')) if text == default_text end) pagination_icon_label_text end end end |