improved ui for browsing through pools

This commit is contained in:
albert
2012-09-21 14:16:47 -04:00
parent 50c99bab03
commit 7fcedc20b4
3 changed files with 43 additions and 18 deletions

View File

@@ -1,17 +0,0 @@
<ul>
<% post.pools.each do |pool| %>
<li>
<% if pool.neighbors(post).previous %>
<%= link_to "&laquo;".html_safe, post_path(pool.neighbors(post).previous) %>
<% else %>
&laquo;
<% end %>
<% if pool.neighbors(post).next %>
<%= link_to "&raquo;".html_safe, post_path(pool.neighbors(post).next) %>
<% else %>
&raquo;
<% end %>
<%= link_to pool.pretty_name, pool_path(pool) %>
</li>
<% end %>
</ul>