Class: Tang::ApplicationHelper::BootstrapLinkRenderer

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

Constant Summary collapse

ELLIPSIS =
"…"

Instance Method Summary collapse

Instance Method Details

#container_attributesObject



66
67
68
# File 'app/helpers/tang/application_helper.rb', line 66

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

#to_htmlObject



54
55
56
57
58
59
60
61
62
63
64
# File 'app/helpers/tang/application_helper.rb', line 54

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