class Golden::Theme::Bootstrap::LinkRenderer
Protected Instance Methods
gap()
click to toggle source
Calls superclass method
# File lib/golden/theme/bootstrap/link_renderer.rb, line 46 def gap tag :li, link(super, nil), class: 'disabled' end
html_container(html)
click to toggle source
# File lib/golden/theme/bootstrap/link_renderer.rb, line 32 def html_container html tag :ul, html, container_attributes end
page_number(page)
click to toggle source
# File lib/golden/theme/bootstrap/link_renderer.rb, line 36 def page_number page options = { rel: rel_value(page) } options.deep_merge! link_options unless link_options.blank? unless page == current_page tag :li, link(page, page, options) else tag :li, link(page, nil, {}), class: 'active' end end
previous_or_next_page(page, text, class_name)
click to toggle source
# File lib/golden/theme/bootstrap/link_renderer.rb, line 50 def previous_or_next_page page, text, class_name options = {} options.deep_merge! link_options unless link_options.blank? class_name = "#{class_name} #{class_name[0..3]}" if page tag :li, link(text, page, options), class: class_name else tag :li, link(text, nil, {}), class: class_name + ' disabled' end end