Skip to content

Commit

Permalink
Add quick link from admin account view to block/unblock instance (#10073
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ClearlyClaire authored and Gargron committed Feb 18, 2019
1 parent 6840a77 commit 3a8cb6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/views/admin/accounts/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@
- else
= link_to t('admin.accounts.perform_full_suspension'), new_admin_account_action_path(@account.id, type: 'suspend'), class: 'button button--destructive' if can?(:suspend, @account)

- unless @account.local?
- if DomainBlock.where(domain: @account.domain).exists?
= link_to t('admin.domain_blocks.undo'), admin_instance_path(@account.domain), class: 'button'
- else
= link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path(_domain: @account.domain), class: 'button button--destructive'

%hr.spacer/

- unless @warnings.empty?
Expand Down

0 comments on commit 3a8cb6c

Please sign in to comment.