modqueue: remove highlighting of high/low scoring posts.

This commit is contained in:
evazion
2020-03-03 02:57:18 -06:00
parent fc97ea3c8e
commit b0e2ffbe7d
5 changed files with 2 additions and 20 deletions

View File

@@ -54,8 +54,6 @@
--modqueue-sample-warning-color: var(--error-background-color);
--modqueue-quality-warning-color: var(--warning-background-color);
--modqueue-positive-score-background-color: var(--success-background-color);
--modqueue-negative-score-background-color: var(--error-background-color);
--uploads-dropzone-background: #EEE;
--uploads-dropzone-progress-bar-foreground-color: var(--link-color);
@@ -343,8 +341,6 @@ body[data-current-user-theme="dark"] {
--modqueue-sample-warning-color: var(--error-background-color);
--modqueue-quality-warning-color: var(--warning-background-color);
--modqueue-positive-score-background-color: var(--success-background-color);
--modqueue-negative-score-background-color: var(--error-background-color);
--news-updates-background: var(--grey-3);
--news-updates-border: 2px solid var(--grey-4);

View File

@@ -5,14 +5,6 @@ div#c-modqueue {
padding: 1em;
overflow: hidden;
&.post-pos-score {
background: var(--modqueue-positive-score-background-color);
}
&.post-neg-score {
background: var(--modqueue-negative-score-background-color);
}
aside.column {
@media (min-width: 660px) {
padding-right: 1em;

View File

@@ -95,7 +95,7 @@ class PostPresenter < Presenter
ApplicationController.render(partial: "posts/partials/index/preview", locals: locals)
end
def self.preview_class(post, highlight_score: nil, pool: nil, size: nil, similarity: nil, recommended: nil, compact: nil, **options)
def self.preview_class(post, pool: nil, size: nil, similarity: nil, recommended: nil, compact: nil, **options)
klass = ["post-preview"]
# klass << " large-cropped" if post.has_cropped? && options[:show_cropped]
klass << "captioned" if pool || size || similarity || recommended
@@ -104,8 +104,6 @@ class PostPresenter < Presenter
klass << "post-status-deleted" if post.is_deleted?
klass << "post-status-has-parent" if post.parent_id
klass << "post-status-has-children" if post.has_visible_children?
klass << "post-pos-score" if highlight_score && post.score >= 3
klass << "post-neg-score" if highlight_score && post.score <= -3
klass << "post-preview-compact" if compact
klass
end

View File

@@ -2,9 +2,5 @@
As a general rule, you should only approve of posts that you personally like. Posts that are not approved in three days will be automatically deleted.
</p>
<p>
Posts with score -3 or lower are marked red.
Posts with score 3 or higher are marked green.
</p>
<p>Posts with the <%= link_to_wikis(*Danbooru.config.modqueue_quality_warning_tags) %> tags are marked in yellow.</p>
<p>Posts with the <%= link_to_wikis(*Danbooru.config.modqueue_sample_warning_tags) %> tags are marked in light red.</p>

View File

@@ -1,4 +1,4 @@
<%= content_tag(:div, { id: "post-#{post.id}", class: ["post", "mod-queue-preview", "column-container", *PostPresenter.preview_class(post, highlight_score: true)].join(" ") }.merge(PostPresenter.data_attributes(post))) do %>
<%= content_tag(:div, { id: "post-#{post.id}", class: ["post", "mod-queue-preview", "column-container", *PostPresenter.preview_class(post)].join(" ") }.merge(PostPresenter.data_attributes(post))) do %>
<aside class="column column-shrink">
<%= PostPresenter.preview(post, size: true) %>
</aside>