yrgoldteeth / bootstrap-will_paginate

Format will_paginate html to match Twitter Bootstrap styling
MIT License
200 stars 46 forks source link

fixes button layout if :page_links => false. #5

Closed jann closed 12 years ago

jann commented 12 years ago

Thanks a alot for the bootstrap-will_paginate gem. Its exactly what I was looking for.

When I tried it, the next/previous buttons were not shown correctly when passing the :page_links => false option.

will_paginate provides the option :page_links => false, which makes only the next and previous button is beein rendered (not the page numbers inbetween).

This commit fixes a broken layout if the option is set to false.

What do you think about it?

yrgoldteeth commented 12 years ago

Awesome, thanks! I had not run into this particular use case, and I'm glad you caught it (and fixed it!)