Class: Tang::ApplicationHelper::BootstrapLinkRenderer

Inherits:
WillPaginate::ActionView::LinkRenderer
  • Object
show all
Defined in:
app/helpers/tang/application_helper.rb

Constant Summary collapse

ELLIPSIS =
'…'.freeze

Instance Method Summary collapse

Instance Method Details

#container_attributesObject



57
58
59
# File 'app/helpers/tang/application_helper.rb', line 57

def container_attributes
  super.except(*[:link_options])
end

#to_htmlObject



45
46
47
48
49
50
51
52
53
54
55
# File 'app/helpers/tang/application_helper.rb', line 45

def to_html
  list_items = pagination.map do |item|
    case item
    when Integer
      page_number(item)
    else
      send(item)
    end
  end.join(@options[:link_separator])
  tag('ul', list_items, class: ul_class)
end