fixes #2486: Blacklist indication/display across the site
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ div#c-comments {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.post.blacklisted {
|
div.post.blacklisted.blacklisted-active {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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) %>
|
||||||
|
|||||||
@@ -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) %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user