Class: PolicyManager::BootstrapLinkRenderer
- Inherits:
-
WillPaginate::ActionView::LinkRenderer
- Object
- WillPaginate::ActionView::LinkRenderer
- PolicyManager::BootstrapLinkRenderer
- Defined in:
- lib/policy_manager/bootstrap_link_renderer.rb
Constant Summary collapse
- ELLIPSIS =
'…'
Instance Method Summary collapse
Instance Method Details
#container_attributes ⇒ Object
25 26 27 |
# File 'lib/policy_manager/bootstrap_link_renderer.rb', line 25 def container_attributes super.except(*[:link_options]) end |
#to_html ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/policy_manager/bootstrap_link_renderer.rb', line 11 def to_html list_items = pagination.map do |item| case item when (1.class == Integer ? Integer : Fixnum) page_number(item) else send(item) end end.join("") list_wrapper = tag :nav, list_items, class: "pagination button-group" tag :nav, list_wrapper end |