pools/show: fix pagination to respect user's posts-per-page setting.

This commit is contained in:
evazion
2019-08-21 14:31:58 -05:00
parent b283281e5e
commit 7cc31b97c9
2 changed files with 6 additions and 4 deletions

View File

@@ -21,7 +21,7 @@
<span class="inactive">(deleted)</span>
<% end %>
<% if pool.post_count > CurrentUser.user.per_page %>
<% if pool.last_page > 1 %>
<%= link_to "page #{pool.last_page}", pool_path(pool, :page => pool.last_page), :class => "last-page" %>
<% end %>
</td>