Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/bootstrap_pagination/bootstrap_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def gap

def previous_page
num = @collection.current_page > 1 && @collection.current_page - 1
previous_or_next_page(num, @options[:previous_label], "prev")
previous_or_next_page(num, @options[:previous_label], "previous")
end

def next_page
Expand All @@ -59,7 +59,8 @@ def next_page
end

def ul_class
["pagination", @options[:class]].compact.join(" ")
base_class = (@options[:page_links]) ? "pagination" : "pager"
[base_class, @options[:class]].compact.join(" ")
end
end
end
2 changes: 1 addition & 1 deletion spec/pagination_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def url(args)
let(:link_options) { {"data-remote" => true} }

it "includes the link attribute" do
html.at_css('li.prev a')["data-remote"].must_equal "true"
html.at_css('li.previous a')["data-remote"].must_equal "true"
end
end
end