about summary refs log tree commit diff
path: root/app/views/admin/email_domain_blocks/_email_domain_block.html.haml
blob: c5a55bc27c32e779c0a7da8b2d0413bd0d84c054 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.batch-table__row
  %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
    = f.check_box :email_domain_block_ids, { multiple: true, include_hidden: false }, email_domain_block.id
  .batch-table__row__content.pending-account
    .pending-account__header
      %samp= link_to email_domain_block.domain, admin_accounts_path(email: "%@#{email_domain_block.domain}")

      %br/

      - if email_domain_block.parent.present?
        = t('admin.email_domain_blocks.resolved_through_html', domain: content_tag(:samp, email_domain_block.parent.domain))
        •

      = t('admin.email_domain_blocks.attempts_over_week', count: email_domain_block.history.reduce(0) { |sum, day| sum + day.accounts })