mislav/will_paginate

Display page_entries_info within pagination wrapper

Closed this issue · 0 comments

Is it currently possible to display page_entries_info output within the default <div class="pagination">...</div> wrapper in the options hash?

Only asking given the app I'm currently building would love this, and if it doesn't exist, will gladly open a PR. EG

<%= will_paginate collection, :page_entries_info => true %>

The way I'm seeing it, if page_entries_info is set to true, then a nested self-titled wrapped will be dropped in to the end of <div class="pagination"> for the developer to style accordingly

For context, here is a screenshot of the pagination I am building. Notice the placeholder for "page 1 of 99", which in this case, would ideally need to be inside the same wrapper as the page links
screen shot 2015-02-04 at 1 43 35 pm