drewolson / scrivener

Pagination for the Elixir ecosystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to disable pagination when results are on single page

ArturT opened this issue · comments

Would be great to have an option to don't show the pagination when there is only 1 page with results.

I'm not sure what you mean by this. If you're suggesting that we should return the raw result set rather than a Scrivener.Page if the result is a single page, that's not something I'll consider. We want consistent return values from the paginate call.

I meant when I do

<%= pagination_links @page, hide_when_single_page: true %>

it would render nothing.

I moved this issue to the proper repo mgwidmann/scrivener_html#65