Files
danbooru/app/views/posts/partials/show/_nav_links.html.erb
Toks 6b18c46c03 Remove redundant undeleted pool checks
Post#pools already excludes deleted pools.
2013-08-19 12:42:38 -04:00

12 lines
533 B
Plaintext

<% if (position == "bottom" && CurrentUser.user.new_post_navigation_layout) || (position == "top" && !CurrentUser.user.new_post_navigation_layout) %>
<div id="nav-links" class="ui-corner-all nav-notice">
<% if CurrentUser.user.enable_sequential_post_navigation && params[:tags].present? && params[:tags] !~ /order:/ %>
<%= render "posts/partials/show/search_seq", :post => post %>
<% end %>
<% if post.pools.any? %>
<%= render "posts/partials/show/pools", :post => post %>
<% end %>
</div>
<% end %>