Add button to Admin Account details page to view the instance if non-local user

pull/31477/head
Emelia Smith 2024-08-17 21:46:17 +02:00
parent 2d589a5ed4
commit 08dd9708fd
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,10 @@
- content_for :page_title do
= @account.pretty_acct
- content_for :heading_actions do
- unless @account.local?
= link_to t('admin.accounts.view_instance'), admin_instance_path(@account.domain), method: :post, class: 'button'
- if @account.instance_actor?
.flash-message.notice
%strong= t('accounts.instance_actor_flash')

View File

@ -165,6 +165,7 @@ en:
unsuspended_msg: Successfully unsuspended %{username}'s account
username: Username
view_domain: View summary for domain
view_instance: View instance
warn: Warn
web: Web
whitelisted: Allowed for federation