Added highlighting and notices for moderators

- Posts and topics have an added moderation_reports function
-- This is so all moderation reports can be loaded in a single query
- Those moderation reports are passed into the render functions separately
-- This is so the individual comments/posts don't have to be queried
This commit is contained in:
BrokenEagle
2020-01-18 21:10:50 +00:00
parent 4cef0e45c2
commit a3e889bdf5
13 changed files with 76 additions and 7 deletions

View File

@@ -1,6 +1,12 @@
@import "../base/000_vars.scss";
div.comments-for-post {
div.moderation-comments-notice {
margin: 1em 0;
font-weight: bold;
color: red;
}
div.hidden-comments-notice {
margin: 1em 0;
}
@@ -13,6 +19,10 @@ div.comments-for-post {
background: var(--comment-sticky-background-color);
}
&[data-is-reported="true"] {
border: solid red;
}
&[data-is-voted="true"] {
.comment-vote-up-link, .comment-vote-down-link {
display: none;

View File

@@ -1,5 +1,14 @@
div.list-of-forum-posts {
div.moderation-forums-notice {
font-weight: bold;
color: red;
}
article.forum-post {
&[data-is-reported="true"] {
border: solid red;
}
a.voted {
font-weight: bold;
}

View File

@@ -1,5 +1,11 @@
div#c-users {
div#a-show {
div.moderation-users-notice {
margin: 1em 0;
font-weight: bold;
color: red;
}
div.box {
margin-bottom: 2em;
}