diff --git a/app/javascript/flavours/glitch/styles/accounts.scss b/app/javascript/flavours/glitch/styles/accounts.scss index f31be33058..d6ac10faf7 100644 --- a/app/javascript/flavours/glitch/styles/accounts.scss +++ b/app/javascript/flavours/glitch/styles/accounts.scss @@ -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; + } +} diff --git a/app/views/admin/accounts/_account.html.haml b/app/views/admin/accounts/_account.html.haml index d2f6652a00..b106092fb9 100644 --- a/app/views/admin/accounts/_account.html.haml +++ b/app/views/admin/accounts/_account.html.haml @@ -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