posts/index: update pending BUR notice criteria.

* Only show pending BUR notice on first page.
* Show pending BUR notice for all searches that include a single tag.
This commit is contained in:
evazion
2020-05-04 01:55:45 -05:00
parent 127bd9866d
commit 6937c40747
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
</div>
<% end %>
<% if CurrentUser.user.is_member? && post_set.query.is_simple_tag? %>
<% if CurrentUser.user.is_member? && post_set.tag.present? && post_set.current_page == 1 %>
<% cache("tag-change-notice:#{post_set.query.normalize_query}", expires_in: 4.hours) do %>
<% if post_set.pending_bulk_update_requests.present? %>
<div class="fineprint tag-change-notice">