Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
833
Issues
833
List
Boards
Labels
Service Desk
Milestones
Merge Requests
55
Merge Requests
55
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
4f441f87
Commit
4f441f87
authored
15 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): add appeals to strikes page
parent
4a2e6f84
epic/ReportingAndModeration
1 merge request
!307
Epic/reporting and moderation
Pipeline
#62350172
running with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
6 deletions
+35
-6
strikes.component.html
src/app/modules/report/strikes/strikes.component.html
+8
-5
strikes.component.scss
src/app/modules/report/strikes/strikes.component.scss
+7
-0
strikes.component.ts
src/app/modules/report/strikes/strikes.component.ts
+20
-1
No files found.
src/app/modules/report/strikes/strikes.component.html
View file @
4f441f87
<div
class=
"m-page m-page--wrapped"
>
<div
class=
"m-page__main"
>
<h2>
Strikes
</h2>
<p>
Strikes are imposed for violations against the terms of service. Following 3 strikes, channels are banned.
</p>
<p>
Strikes are imposed for violations against the terms of service. Following 3 strikes, channels are banned
or marked NSFW
.
</p>
<ul
class=
"m-moderationStrike__list"
>
<li
*
ngFor=
"let strike of strikes"
class=
"m-border m-moderation__strike"
>
{{ strike['@timestamp'] * 1000 | date: 'medium' }}
<div
>
<
b>
{{ service.getReasonString(strike) }}
</b
>
<div
class=
"m-moderationStrike__info"
>
<strong>
{{ strike['@timestamp'] * 1000 | date: 'medium' }}
</strong>
<span><b>
Reason:
</b>
{{ service.getReasonString(strike) }}
</span
>
<
span><b>
State:
</b>
{{ friendlyState(strike.report) }}
</span
>
</div>
<m-moderation
__appeal
[
appeal
]="
strike
.
appeal
"
>
</m-moderation
__appeal
>
</li>
<li
*
ngIf=
"!inProgress && strikes.length === 0"
>
You have no strikes. Your channel is in good standing.
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/report/strikes/strikes.component.scss
View file @
4f441f87
...
...
@@ -15,3 +15,10 @@ m-moderation__strikes h2 {
padding
:
16px
;
margin-bottom
:
16px
;
}
.m-moderationStrike__info
{
margin-bottom
:
16px
;
>
*
{
display
:
block
;
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/report/strikes/strikes.component.ts
View file @
4f441f87
...
...
@@ -61,4 +61,23 @@ export class StrikesComponent implements OnInit {
}
}
}
\ No newline at end of file
friendlyState
(
report
)
{
switch
(
report
.
state
)
{
case
'initial_jury_decided'
:
return
'Available to appeal'
;
break
;
case
'appealed'
:
return
'Awaiting appeal jury'
;
break
;
case
'appeal_jury_decided'
:
if
(
report
.
upheld
)
{
return
'Appeal rejected'
;
}
else
{
return
'Appeal accepted'
;
// Strike should have been removed by this stage
}
break
;
}
return
'Unknown'
;
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment