Skip to content

Commit

Permalink
Merge pull request online-go#2784 from GreenAsJade/highlight_canned_w…
Browse files Browse the repository at this point in the history
…arnings_in_mod_log

Highlight canned warnings in mod log
  • Loading branch information
anoek authored Aug 18, 2024
2 parents edaf18f + c27a09a commit bc400ec
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ogs.styl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ light.primary = #2480FF
light.danger = #FFA600
//light.success = #00C600
light.success = #2AD131
light.success = #32C738
light.success = #32C738 // make up your mind? ;)
//light.info = #A41EFF
light.info = #C46EFF
light.info = #C376FE // make up your mind? ;)
Expand Down
8 changes: 6 additions & 2 deletions src/views/User/ModLog.styl
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@
}

.acknowledgement-event {
themed background shade4;
color green;
themed background shade5;
themed color success;
font-size: smaller;
font-style: italic;
}

.warning-event {
themed color danger;
}
}
10 changes: 9 additions & 1 deletion src/views/User/ModLog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,15 @@ export function ModLog(props: ModLogProps): JSX.Element {
X.action.includes("acknowledgement") ? "acknowledgement-event" : ""
}
>
<div className="action">
<div
className={
"action" +
(!X.action.includes("acknowledgement") && // needed for modlog backward compatibility
X.action.includes("warning")
? " warning-event"
: "")
}
>
{X.incident_report?.id ? (
<Link to={`/reports-center/all/${X.incident_report.id}`}>
R{X.incident_report.id.toString().substr(-3)}
Expand Down

0 comments on commit bc400ec

Please sign in to comment.