appeals: only show current appeal on appealed posts.

* Only show the current pending appeal in the "This post was appealed"
  notice. Don't show old appeals.

* Don't show both the "This post was deleted" and the "This post was
  appealed" notice on appealed posts. Only show the "This post was
  appealed" notice.

* Show "no reason" if no appeal reason was given.
This commit is contained in:
evazion
2020-08-16 10:54:59 -05:00
parent d4d1088c30
commit 7eb9f0b75e
5 changed files with 13 additions and 21 deletions

View File

@@ -107,7 +107,6 @@
--post-flagged-notice-background: var(--error-background-color);
--post-banned-notice-background: var(--error-background-color);
--post-deleted-notice-background: var(--error-background-color);
--post-appealed-notice-background: #D8F2FC;
--post-resized-notice-background: #EED8FC;
--post-search-notice-background: #EEE;
@@ -386,7 +385,6 @@ body[data-current-user-theme="dark"] {
--post-flagged-notice-background: var(--red-0);
--post-deleted-notice-background: var(--red-0);
--post-banned-notice-background: var(--red-0);
--post-appealed-notice-background: var(--blue-0);
--post-tooltip-background-color: var(--grey-3);
--post-tooltip-border-color: var(--grey-4);

View File

@@ -269,7 +269,6 @@ div#c-posts {
&.post-notice-flagged { background: var(--post-flagged-notice-background); }
&.post-notice-banned { background: var(--post-banned-notice-background); }
&.post-notice-deleted { background: var(--post-deleted-notice-background); }
&.post-notice-appealed { background: var(--post-appealed-notice-background); }
&.post-notice-resized { background: var(--post-resized-notice-background); }
&.post-notice-search { background: var(--post-search-notice-background); }
}