Add link to last page of pool from index; fixes #1848

This commit is contained in:
Toks
2013-07-11 20:56:20 -04:00
parent d79a22a73b
commit f4c5126b11
3 changed files with 12 additions and 0 deletions

View File

@@ -17,6 +17,10 @@
</td>
<td>
<%= link_to h(pool.pretty_name), pool_path(pool), :class => "pool-category-#{pool.category}" %>
<% if pool.post_count > CurrentUser.user.per_page %>
<%= link_to "page #{pool.last_page}", pool_path(pool, :page => pool.last_page), :class => "last-page" %>
<% end %>
</td>
<td>
<%= pool.post_count %>