From 08dd9708fd819d2c31ae35c605ec66f06aaa0623 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Sat, 17 Aug 2024 21:46:17 +0200 Subject: [PATCH] Add button to Admin Account details page to view the instance if non-local user --- app/views/admin/accounts/show.html.haml | 4 ++++ config/locales/en.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/app/views/admin/accounts/show.html.haml b/app/views/admin/accounts/show.html.haml index f148b9a0822..d2711a5b1ff 100644 --- a/app/views/admin/accounts/show.html.haml +++ b/app/views/admin/accounts/show.html.haml @@ -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') diff --git a/config/locales/en.yml b/config/locales/en.yml index 1df9af88d95..3028436703d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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