17 lines
473 B
Plaintext
17 lines
473 B
Plaintext
<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.name, pool_path(pool) %>
|
|
</li>
|
|
<% end %>
|
|
</ul> |