th: accounts: Show accounts with open strikes/warnings in red

Cherry-picked-from: d497ccd6ca
main
VT Social 2022-11-26 07:37:26 +00:00 committed by kouhai
parent 588402302f
commit 99aec9e9e5
2 changed files with 25 additions and 1 deletions

View File

@ -409,3 +409,25 @@
color: $gold-star;
}
}
.batch-table__row--warn {
color: $warning-red;
}
.batch-table__row--warn .pending-account__header,
.batch-table__row--warn .accounts-table,
.batch-table__row--warn .name-tag {
&,
a,
strong {
color: $warning-red;
}
}
.batch-table__row--warn .accounts-table {
tbody td.accounts-table__extra,
&__count,
&__count small {
color: $warning-red;
}
}

View File

@ -1,4 +1,6 @@
.batch-table__row{ class: [!account.unavailable? && account.user_pending? && 'batch-table__row--attention', (account.unavailable? || account.user_unconfirmed?) && 'batch-table__row--muted'] }
.batch-table__row{ class: [!account.unavailable? && account.user_pending? && 'batch-table__row--attention',
(account.unavailable? || account.user_unconfirmed?) && 'batch-table__row--muted',
(account.previous_strikes_count > 0) && 'batch-table__row--warn'] }
%label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
= f.check_box :account_ids, { multiple: true, include_hidden: false }, account.id
.batch-table__row__content.batch-table__row__content--unpadded