jmcclell / django-bootstrap-pagination

Django template tag for rendering Page objects as Bootstrap pagination HTML
MIT License
212 stars 83 forks source link

Lack of "centered" for "bootstrap_paginate" #38

Closed ad-m closed 5 years ago

ad-m commented 8 years ago

"bootstrap_pager" offer "centered' kwargs. I believe "bootstrap_paginate" should offer it too.

jmcclell commented 8 years ago

The underlying bootstrap pagination component does not have any options for alignment. You can either wrap your pagination object in a div to center it or extend the template and override the extra_classes block with a comma delimted list of class names to add. That's not very ideal, I agree. Extra classes or extra style overrides could be added as additional parameters, perhaps. Would welcome a PR for it for both pager or pagination.