will_paginate-bootstrap icon indicating copy to clipboard operation
will_paginate-bootstrap copied to clipboard

Is it possible to remove the default class of `.pagination`?

Open revdan opened this issue 12 years ago • 6 comments

I'm removing the page numbers, and adding a class of .pager like this:

<%= will_paginate @posts, 
  renderer: BootstrapPagination::Rails, 
  page_links: false, class: :pager %>

However, because it's automatically adding the .pagination class as well, I'm getting some funkiness.

I don't have a live example, but here's how it looks with first .pager .pagination and second with just .pager

screen shot 2013-10-20 at 20 53 24

Thanks in advance :)

revdan avatar Oct 20 '13 19:10 revdan

Thanks for reporting this. I’ll try and get round to adding an option to override the ‘pagination’ class soon.

nickpad avatar Nov 21 '13 21:11 nickpad

I have a solution for this. https://github.com/majorvin/will_paginate-bootstrap/pull/1

majorvin avatar Jan 20 '14 17:01 majorvin

When i add code <%= will_paginate @comments, renderer: BootstrapPagination::Rails %> to my project, I got two class pagination, Why?

Aufree avatar Sep 18 '14 14:09 Aufree

+1

chip-and-dail avatar Nov 01 '14 20:11 chip-and-dail

Is this still open? I'm still getting two pagination classes.

edatrix avatar Sep 08 '15 18:09 edatrix

@Aufree or @edatrix does your @comments model belongs_to another model like "Posts" or something? If so, this might be the cause of the issue. Would need to investigate after confirming. I bet that is what causes two paginations.

jacurtis avatar Jan 15 '16 18:01 jacurtis