Extract partials from admin/accounts/show view (#27428)
This commit is contained in:
parent
893b2f33fd
commit
8d0f12f776
5 changed files with 185 additions and 206 deletions
15
app/views/admin/accounts/_remote_account.html.haml
Normal file
15
app/views/admin/accounts/_remote_account.html.haml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
%tr
|
||||
%th= t('admin.accounts.inbox_url')
|
||||
%td
|
||||
= account.inbox_url
|
||||
= fa_icon DeliveryFailureTracker.available?(account.inbox_url) ? 'check' : 'times'
|
||||
%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
|
||||
= fa_icon DeliveryFailureTracker.available?(account.shared_inbox_url) ? 'check' : 'times'
|
||||
%td
|
||||
- if domain_block.nil?
|
||||
= table_link_to 'ban', t('admin.domain_blocks.add_new'), new_admin_domain_block_path(_domain: account.domain)
|
||||
Loading…
Add table
Add a link
Reference in a new issue