Sha256: 5c5146e114db4c4f8a870a2824eb61f02f8919351dda052bf7e03154f419b4ec
Contents?: true
Size: 709 Bytes
Versions: 3
Compression:
Stored size: 709 Bytes
Contents
require 'will_paginate/view_helpers/action_view' module Formol module WillPaginate class ListLinkRenderer < ::WillPaginate::ActionView::LinkRenderer protected def page_number(page) unless page == current_page tag(:li, link(page, page, :rel => rel_value(page))) else tag(:li, page, :class => "current") end end def previous_or_next_page(page, text, classname) if page tag(:li, link(text, page), :class => classname) else tag(:li, text, :class => classname + ' disabled') end end def html_container(html) tag(:ul, html, container_attributes) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
formol-0.0.6 | lib/formol/will_paginate/list_link_renderer.rb |
formol-0.0.5 | lib/formol/will_paginate/list_link_renderer.rb |
formol-0.0.4 | lib/formol/will_paginate/list_link_renderer.rb |