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>

View File

@@ -6,7 +6,7 @@
<% if @post.pools.any? %>
<section id="pool-sidebar">
<h1>Pools</h1>
<%= render "posts/partials/show/pools", :post => @post %>
<%= @post.presenter.pool_html(self) %>
</section>
<% end %>