mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 17:53:41 +01:00
Add badge on account card in report moderation interface when account is already suspended (#29592)
This commit is contained in:
parent
39839baec3
commit
cf08a438e7
3 changed files with 22 additions and 0 deletions
|
@ -1380,6 +1380,19 @@ a.sparkline {
|
||||||
.account-card {
|
.account-card {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: 1px solid lighten($ui-base-color, 8%);
|
border: 1px solid lighten($ui-base-color, 8%);
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&__warning-badge {
|
||||||
|
position: absolute;
|
||||||
|
padding: 4px 10px;
|
||||||
|
top: 10px;
|
||||||
|
inset-inline-start: 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background:
|
||||||
|
url('../images/warning-stripes.svg') repeat-y left,
|
||||||
|
url('../images/warning-stripes.svg') repeat-y right,
|
||||||
|
var(--background-color);
|
||||||
|
}
|
||||||
|
|
||||||
&__permalink {
|
&__permalink {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
.report-header__card
|
.report-header__card
|
||||||
.account-card
|
.account-card
|
||||||
|
- if report.target_account.suspended?
|
||||||
|
.account-card__warning-badge
|
||||||
|
- if report.target_account.suspension_origin_local?
|
||||||
|
= t('admin.reports.already_suspended_badges.local')
|
||||||
|
- else
|
||||||
|
= t('admin.reports.already_suspended_badges.remote')
|
||||||
.account-card__header
|
.account-card__header
|
||||||
= image_tag report.target_account.header.url, alt: ''
|
= image_tag report.target_account.header.url, alt: ''
|
||||||
.account-card__title
|
.account-card__title
|
||||||
|
|
|
@ -597,6 +597,9 @@ en:
|
||||||
actions_description_html: Decide which action to take to resolve this report. If you take a punitive action against the reported account, an e-mail notification will be sent to them, except when the <strong>Spam</strong> category is selected.
|
actions_description_html: Decide which action to take to resolve this report. If you take a punitive action against the reported account, an e-mail notification will be sent to them, except when the <strong>Spam</strong> category is selected.
|
||||||
actions_description_remote_html: Decide which action to take to resolve this report. This will only affect how <strong>your</strong> server communicates with this remote account and handle its content.
|
actions_description_remote_html: Decide which action to take to resolve this report. This will only affect how <strong>your</strong> server communicates with this remote account and handle its content.
|
||||||
add_to_report: Add more to report
|
add_to_report: Add more to report
|
||||||
|
already_suspended_badges:
|
||||||
|
local: Already suspended on this server
|
||||||
|
remote: Already suspended on their server
|
||||||
are_you_sure: Are you sure?
|
are_you_sure: Are you sure?
|
||||||
assign_to_self: Assign to me
|
assign_to_self: Assign to me
|
||||||
assigned: Assigned moderator
|
assigned: Assigned moderator
|
||||||
|
|
Loading…
Reference in a new issue