fixed pool sidebar in post/show
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
<ul>
|
||||
<% post.pools.each do |pool| %>
|
||||
<li><span class="ui-icon ui-icon-circle-arrow-w"></span><span class="ui-icon ui-icon-circle-arrow-e"></span> <%= link_to pool_path(pool), pool.name %></li>
|
||||
<li>
|
||||
<% if pool.neighbor_posts(post)[:previous] %>
|
||||
<%= link_to "«".html_safe, post_path(pool.neighbor_posts(post)[:previous]) %>
|
||||
<% else %>
|
||||
«
|
||||
<% end %>
|
||||
<% if pool.neighbor_posts(post)[:next] %>
|
||||
<%= link_to "»".html_safe, post_path(pool.neighbor_posts(post)[:next]) %>
|
||||
<% else %>
|
||||
»
|
||||
<% end %>
|
||||
<%= link_to pool.name, pool_path(pool) %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user