accounts: Show accounts with open strikes/warnings in red

main
VT Social 2022-11-26 07:37:26 +00:00
parent 355c35129d
commit d497ccd6ca
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