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

Выводить пагинатор только в случае необходимости #57

Open
SerjAntiquity opened this issue Oct 8, 2015 · 1 comment

Comments

@SerjAntiquity
Copy link
Collaborator

Для страниц, где может понадобиться пагинатор, мы дожны в контроллере определять, нужно ли его отображать.

Для этого надо сравнить общее кол-во сущностей с максимальным допустимым на одной странице и передать булево значение во вьюху. Соотв, в ней отображать пагинатор только если нужно.

@SerjAntiquity
Copy link
Collaborator Author

pg

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

No branches or pull requests

2 participants