Skip to content

Add big table limited pagination#2968

Merged
mshibuya merged 1 commit into
railsadminteam:masterfrom
lazebny:add-without-count-paginator
Jan 2, 2018
Merged

Add big table limited pagination#2968
mshibuya merged 1 commit into
railsadminteam:masterfrom
lazebny:add-without-count-paginator

Conversation

@lazebny
Copy link
Copy Markdown
Contributor

@lazebny lazebny commented Dec 10, 2017

Overview

Added limited pagination 'prev', 'next' buttons only. It allows not to do count(*) which is slowly on big tables.

P.S. If this approach is ok we can reuse it in #2808

@lazebny
Copy link
Copy Markdown
Contributor Author

lazebny commented Dec 12, 2017

@mshibuya could you check it?

@mshibuya
Copy link
Copy Markdown
Member

Thanks for the PR, I like this feature.

= paginator.render do
%ul.pagination
= prev_page_tag if !current_page.first?
= next_page_tag # if !current_page.last? && !current_page.out_of_range?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This commented-out code should be removed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, will do.

@lazebny
Copy link
Copy Markdown
Contributor Author

lazebny commented Dec 30, 2017

@mshibuya comments are removed, please let me know if need to fix something else.

@mshibuya mshibuya merged commit e20ff43 into railsadminteam:master Jan 2, 2018
@mshibuya
Copy link
Copy Markdown
Member

mshibuya commented Jan 2, 2018

Merged in, thanks!

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