bootstrap-ruby / will_paginate-bootstrap

Integrates the Twitter Bootstrap pagination component with will_paginate
MIT License
388 stars 160 forks source link

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

Open revdan opened 11 years ago

revdan commented 11 years ago

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 :)

nickpad commented 11 years ago

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

majorvin commented 10 years ago

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

Aufree commented 10 years ago

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

chip-and-dail commented 10 years ago

+1

edatrix commented 9 years ago

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

jacurtis commented 8 years ago

@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.