From b2acda7691b188ecb77dc3a35797e3124296e205 Mon Sep 17 00:00:00 2001 From: Pia B Date: Mon, 8 Jun 2026 18:25:59 +0200 Subject: [PATCH] add to view --- app/views/admin/tags/show.html.haml | 11 +++++++++++ config/locales/en-GB.yml | 2 ++ 2 files changed, 13 insertions(+) diff --git a/app/views/admin/tags/show.html.haml b/app/views/admin/tags/show.html.haml index 0c8b2eaec0b..96df006b85a 100644 --- a/app/views/admin/tags/show.html.haml +++ b/app/views/admin/tags/show.html.haml @@ -90,3 +90,14 @@ .actions = f.button :button, t('generic.save_changes'), type: :submit + +- if @tag.persisted? + %hr.spacer/ + + %h3= t('admin.tags.audit_log.title') + - if @action_logs.empty? + %p= t('accounts.nothing_here') + - else + .report-notes + = render partial: 'admin/action_logs/action_log', collection: @action_logs + = link_to t('admin.instances.audit_log.view_all'), admin_action_logs_path(action_type: 'update_tag'), class: 'button' diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml index 9d535e3af02..847d4a55a71 100644 --- a/config/locales/en-GB.yml +++ b/config/locales/en-GB.yml @@ -243,6 +243,7 @@ en-GB: update_ip_block: Update IP rule update_report: Update Report update_status: Update Post + update_tag: Update Hashtag update_user_role: Update Role update_username_block: Update Username Rule actions: @@ -313,6 +314,7 @@ en-GB: update_ip_block_html: "%{name} changed rule for IP %{target}" update_report_html: "%{name} updated report %{target}" update_status_html: "%{name} updated post by %{target}" + update_tag_html: "%{name} changed rule for %{target}" update_user_role_html: "%{name} changed %{target} role" update_username_block_html: "%{name} updated rule for usernames containing %{target}" deleted_account: deleted account