glitch-soc/mastodon

View on GitHub
app/views/admin/accounts/_remote_account.html.haml

Summary

Maintainability
Test Coverage
%tr
  %th= t('admin.accounts.inbox_url')
  %td
    = account.inbox_url
    = material_symbol DeliveryFailureTracker.available?(account.inbox_url) ? 'check' : 'close'
  %td
    = table_link_to 'search', domain_block.present? ? t('admin.domain_blocks.view') : t('admin.accounts.view_domain'), admin_instance_path(account.domain)
%tr
  %th= t('admin.accounts.shared_inbox_url')
  %td
    = account.shared_inbox_url
    = material_symbol DeliveryFailureTracker.available?(account.shared_inbox_url) ? 'check' : 'close'
  %td
    - if domain_block.nil?
      = table_link_to 'hide_source', t('admin.domain_blocks.add_new'), new_admin_domain_block_path(_domain: account.domain)