-
Notifications
You must be signed in to change notification settings - Fork 257
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
moves next after numbers #3272
moves next after numbers #3272
Conversation
-%> | ||
<% if current_page.first? %> | ||
<li class="page-item disabled"> | ||
<%= link_to raw(t 'views.pagination.previous'), '#', :rel => 'prev', :onclick=>'return false;', class: 'btn btn-link text-decoration-none', aria: { label: t('views.pagination.aria.go_to_previous_page') } %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need 'onclick' here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what is in the current pagination.
</li> | ||
<% else %> | ||
<li class="page-item"> | ||
<%= link_to raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote, class: 'btn btn-link text-decoration-none', aria: { label: t('views.pagination.aria.go_to_previous_page') } %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the remote used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. This again was in the old code.
-%> | ||
<% page_display = number_with_delimiter(page.to_s) %> | ||
|
||
<li class="page-item <%= 'active' if page.current? %>"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this also have aria-current="page"
if it's current?
3129087
to
977d1cf
Compare
@dnoneill this requires a rebase. |
977d1cf
to
b7eab8e
Compare
b7eab8e
to
2882d99
Compare
Add configuration to opt-in to the new paginator layout. Backports #3272
You can see the changes by changing
blacklight/lib/blacklight/engine.rb
Line 71 in a8b5a3d
blacklight9