Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance/previous or next page #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gohdaniel15
Copy link

@gohdaniel15 gohdaniel15 commented Apr 23, 2018

This PR addresses two issues:

  1. Links are still clickable even though they are disabled via CSS
    This PR fixes it by making #previous_or_next_page return a nested span instead of a nested a. This is the recommended implementation in the Bootstrap 2, Bootstrap 3 and Bootstrap 4 documentations.

Referenced from issue #29

  1. Reintroduces support for Bootstrap 2
    Would you be okay with having support for some legacy codebases out there? This is entirely up to you- and I'll be happy to remove this commit if you don't feel comfortable having it in your codebase. Just for your reference, I currently need Bootstrap 2 support for your gem.

  2. Modified the page_number method to also return a span instead of a li. This will also ensure that it is not clickable even though it is disabled.

Let me know what your thoughts are about the concept or the code- will be happy to make any changes :) & thank you for maintaining this gem! 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant