fixes #1177 and more pretty pool name cases

This commit is contained in:
Toks
2013-04-04 12:34:26 -04:00
parent aa3c5cd794
commit 91f8fddb18
5 changed files with 6 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ class PostPresenter < Presenter
pool = Pool.where(:id => template.params[:pool_id]).first
return if pool.nil?
return if pool.neighbors(@post).next.nil?
template.link_to("Next in #{pool.name}", template.post_path(pool.neighbors(@post).next))
template.link_to("Next in #{pool.pretty_name}", template.post_path(pool.neighbors(@post).next))
else
nil
end