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

remove unused href and add classes #12

Closed
wants to merge 1 commit into from

Conversation

znz
Copy link

@znz znz commented Nov 19, 2012

In bootstrap theme, href attributes are unnecessary.
And page and gap classes are missing.

@jgrevich
Copy link
Contributor

I believe it is intended to be that way since bootstrap does not use gap or page classes on the pagination li's by default.

I agree that we can remove the href attributes, but why remove the rails_helper methods? Perhaps we can leverage them even further with something like this:

<%= content_tag :li, link_to( raw(t 'views.pagination.truncate')), class: :disabled %>

<li class="disabled">
<%= link_to raw(t 'views.pagination.truncate'), '#' %>
<li class="page gap disabled">
<a><%= raw(t 'views.pagination.truncate') %></a>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove the helper ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that link_to helper cannot omit href.

@seuros seuros closed this Nov 22, 2014
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.

None yet

3 participants