fixes #2486: Blacklist indication/display across the site

This commit is contained in:
r888888888
2015-08-18 15:47:31 -07:00
parent f2d9652fad
commit 6b96032a4e
6 changed files with 11 additions and 3 deletions

View File

@@ -130,7 +130,7 @@
} }
Danbooru.Blacklist.posts = function() { Danbooru.Blacklist.posts = function() {
return $(".post-preview, #image-container"); return $(".post-preview, #image-container, #c-comments .post");
} }
Danbooru.Blacklist.post_match = function(post, entry) { Danbooru.Blacklist.post_match = function(post, entry) {

View File

@@ -131,7 +131,7 @@ div#c-comments {
} }
} }
div.post.blacklisted { div.post.blacklisted.blacklisted-active {
display: none; display: none;
} }

View File

@@ -503,7 +503,7 @@ div#c-explore-posts {
} }
} }
div#c-explore-posts, div#c-post-appeals, div#c-post-flags, div#c-pools { div#c-explore-posts, div#c-post-appeals, div#c-post-flags, div#c-pools, div#c-notes, div#c-comments {
#blacklist-box { #blacklist-box {
margin-bottom: 1em; margin-bottom: 1em;
} }

View File

@@ -1,6 +1,9 @@
<div id="c-comments"> <div id="c-comments">
<div id="a-index"> <div id="a-index">
<h1>Comments</h1> <h1>Comments</h1>
<%= render "posts/partials/common/inline_blacklist" %>
<% if !CurrentUser.user.is_builder? %> <% if !CurrentUser.user.is_builder? %>
<div style="margin-bottom: 1em;"> <div style="margin-bottom: 1em;">
<h2>Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.</h2> <h2>Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.</h2>

View File

@@ -2,6 +2,8 @@
<div id="a-index"> <div id="a-index">
<h1>Notes</h1> <h1>Notes</h1>
<%= render "posts/partials/common/inline_blacklist" %>
<%= @post_set.presenter.post_previews_html(self) %> <%= @post_set.presenter.post_previews_html(self) %>
<%= numbered_paginator(@posts, false) %> <%= numbered_paginator(@posts, false) %>

View File

@@ -1,6 +1,9 @@
<div id="c-pools"> <div id="c-pools">
<div id="a-gallery"> <div id="a-gallery">
<%= render "search", :path => gallery_pools_path %> <%= render "search", :path => gallery_pools_path %>
<%= render "posts/partials/common/inline_blacklist" %>
<section> <section>
<%= @post_set.presenter.post_previews_html(self) %> <%= @post_set.presenter.post_previews_html(self) %>