From c1fa656bd215e5d59584af26590da5dd08cd598b Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 1 May 2017 13:55:35 -0500 Subject: [PATCH] posts: change flag borders from red to blue for non-approvers. --- app/assets/stylesheets/specific/posts.scss | 17 ++++++++++++----- app/views/layouts/default.html.erb | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/specific/posts.scss b/app/assets/stylesheets/specific/posts.scss index 667d5edd1..b32c1a254 100644 --- a/app/assets/stylesheets/specific/posts.scss +++ b/app/assets/stylesheets/specific/posts.scss @@ -102,23 +102,30 @@ a.blacklisted-active { } - &.post-status-pending:not(.mod-queue-preview) img { + /* Pending and flagged posts have blue borders (except in the modqueue). */ + &.post-status-pending:not(.mod-queue-preview) img, + &.post-status-flagged:not(.mod-queue-preview) img { border-color: $preview_pending_color; } - &.post-status-has-children.post-status-pending:not(.mod-queue-preview) img { + &.post-status-has-children.post-status-pending:not(.mod-queue-preview) img, + &.post-status-has-children.post-status-flagged:not(.mod-queue-preview) img { border-color: $preview_has_children_color $preview_pending_color $preview_pending_color $preview_has_children_color; } - &.post-status-has-parent.post-status-pending:not(.mod-queue-preview) img { + &.post-status-has-parent.post-status-pending:not(.mod-queue-preview) img, + &.post-status-has-parent.post-status-flagged:not(.mod-queue-preview) img { border-color: $preview_has_parent_color $preview_pending_color $preview_pending_color $preview_has_parent_color; } - &.post-status-has-children.post-status-has-parent.post-status-pending:not(.mod-queue-preview) img { + &.post-status-has-children.post-status-has-parent.post-status-pending:not(.mod-queue-preview) img, + &.post-status-has-children.post-status-has-parent.post-status-flagged:not(.mod-queue-preview) img { border-color: $preview_has_children_color $preview_pending_color $preview_pending_color $preview_has_parent_color; } +} - +/* Flagged posts have red borders for approvers. */ +body[data-can-approve-posts="true"] .post-preview { &.post-status-flagged img { border-color: $preview_flagged_color; } diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index edaeba87b..07646a58b 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -69,7 +69,7 @@ } - +
<%= render "news_updates/listing" %>