Fix #1156: Allow sequential search navigator to work without a search.

This commit is contained in:
evazion
2017-07-24 19:30:30 -05:00
parent a177473aee
commit 0129891213
4 changed files with 18 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
<% 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] !~ /(?:^|\s)(?:order|ordfav|ordpool):/ %>
<% if post.presenter.has_sequential_navigation?(self) %>
<%= render "posts/partials/show/search_seq", :post => post %>
<% end %>