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

moves next after numbers #3272

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

dnoneill
Copy link
Contributor

@dnoneill dnoneill commented Aug 14, 2024

You can see the changes by changing

theme: 'blacklight',
to blacklight9

Screenshot 2024-08-14 at 11 34 18 AM

app/views/kaminari/blacklight9/_first_page.html.erb Outdated Show resolved Hide resolved
-%>
<% 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') } %>
Copy link
Member

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?

Copy link
Contributor Author

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') } %>
Copy link
Member

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?

Copy link
Contributor Author

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? %>">
Copy link
Member

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?

app/views/kaminari/blacklight9/_page.html.erb Outdated Show resolved Hide resolved
app/assets/stylesheets/blacklight/_pagination.scss Outdated Show resolved Hide resolved
app/assets/stylesheets/blacklight/_pagination.scss Outdated Show resolved Hide resolved
app/assets/stylesheets/blacklight/_pagination.scss Outdated Show resolved Hide resolved
@dnoneill dnoneill force-pushed the blacklight9-pagination branch 4 times, most recently from 3129087 to 977d1cf Compare August 14, 2024 20:46
@dnoneill dnoneill changed the title update pagination to be links, moves next after numbers moves next after numbers Aug 14, 2024
@jcoyne
Copy link
Member

jcoyne commented Sep 18, 2024

@dnoneill this requires a rebase.

@jcoyne jcoyne added this to the 9.X milestone Sep 18, 2024
@jcoyne jcoyne merged commit d25f695 into projectblacklight:main Sep 25, 2024
11 checks passed
jcoyne added a commit that referenced this pull request Oct 8, 2024
Add configuration to opt-in to the new paginator layout. Backports #3272
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.

2 participants