improved ui for browsing through pools
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
<ul>
|
||||
<% post.pools.each do |pool| %>
|
||||
<li>
|
||||
<% if pool.neighbors(post).previous %>
|
||||
<%= link_to "«".html_safe, post_path(pool.neighbors(post).previous) %>
|
||||
<% else %>
|
||||
«
|
||||
<% end %>
|
||||
<% if pool.neighbors(post).next %>
|
||||
<%= link_to "»".html_safe, post_path(pool.neighbors(post).next) %>
|
||||
<% else %>
|
||||
»
|
||||
<% end %>
|
||||
<%= link_to pool.pretty_name, pool_path(pool) %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user