diff options
author | Claire <claire.github-309c@sitedethib.com> | 2024-03-19 09:20:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 08:20:53 +0000 |
commit | cf08a438e7ce7981c209b0faa54a32c5bbe40930 (patch) | |
tree | c3c6414b19646c395c957048a9712128d8927f2d /app/views/admin | |
parent | 39839baec378eb2b9bcd709fd8d7784e81e1674a (diff) |
Add badge on account card in report moderation interface when account is already suspended (#29592)
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/reports/_header_card.html.haml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/admin/reports/_header_card.html.haml b/app/views/admin/reports/_header_card.html.haml index 6fd8b4ecc8b..e90e3f9c906 100644 --- a/app/views/admin/reports/_header_card.html.haml +++ b/app/views/admin/reports/_header_card.html.haml @@ -1,5 +1,11 @@ .report-header__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 = image_tag report.target_account.header.url, alt: '' .account-card__title |