From b42661ba95b7872ba278fca9b0fee8faffd89e52 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Mon, 12 Aug 2024 16:45:30 +0200 Subject: [PATCH] Add missing Appeals link under Moderation in navigiation (#31071) --- app/javascript/material-icons/400-24px/feedback-fill.svg | 1 + app/javascript/material-icons/400-24px/feedback.svg | 1 + config/navigation.rb | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 app/javascript/material-icons/400-24px/feedback-fill.svg create mode 100644 app/javascript/material-icons/400-24px/feedback.svg diff --git a/app/javascript/material-icons/400-24px/feedback-fill.svg b/app/javascript/material-icons/400-24px/feedback-fill.svg new file mode 100644 index 00000000000..7edf5667b0a --- /dev/null +++ b/app/javascript/material-icons/400-24px/feedback-fill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/javascript/material-icons/400-24px/feedback.svg b/app/javascript/material-icons/400-24px/feedback.svg new file mode 100644 index 00000000000..b001b512c53 --- /dev/null +++ b/app/javascript/material-icons/400-24px/feedback.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/config/navigation.rb b/config/navigation.rb index 77e60d13c00..33efb78b1ee 100644 --- a/config/navigation.rb +++ b/config/navigation.rb @@ -47,7 +47,8 @@ SimpleNavigation::Configuration.run do |navigation| n.item :moderation, safe_join([material_symbol('gavel'), t('moderation.title')]), nil, if: -> { current_user.can?(:manage_reports, :view_audit_log, :manage_users, :manage_invites, :manage_taxonomies, :manage_federation, :manage_blocks) && !self_destruct } do |s| s.item :reports, safe_join([material_symbol('flag'), t('admin.reports.title')]), admin_reports_path, highlights_on: %r{/admin/reports|admin/report_notes}, if: -> { current_user.can?(:manage_reports) } - s.item :accounts, safe_join([material_symbol('groups'), t('admin.accounts.title')]), admin_accounts_path(origin: 'local'), highlights_on: %r{/admin/accounts|admin/account_moderation_notes|/admin/pending_accounts|/admin/disputes|/admin/users}, if: -> { current_user.can?(:manage_users) } + s.item :appeals, safe_join([material_symbol('feedback'), t('admin.disputes.appeals.title')]), admin_disputes_appeals_path, highlights_on: %r{/admin/disputes/appeals}, if: -> { current_user.can?(:manage_appeals) } + s.item :accounts, safe_join([material_symbol('groups'), t('admin.accounts.title')]), admin_accounts_path(origin: 'local'), highlights_on: %r{/admin/accounts|admin/account_moderation_notes|/admin/pending_accounts|/admin/users}, if: -> { current_user.can?(:manage_users) } s.item :tags, safe_join([material_symbol('tag'), t('admin.tags.title')]), admin_tags_path, highlights_on: %r{/admin/tags}, if: -> { current_user.can?(:manage_taxonomies) } s.item :invites, safe_join([material_symbol('person_add'), t('admin.invites.title')]), admin_invites_path, if: -> { current_user.can?(:manage_invites) } s.item :instances, safe_join([material_symbol('cloud'), t('admin.instances.title')]), admin_instances_path(limited: limited_federation_mode? ? nil : '1'), highlights_on: %r{/admin/instances|/admin/domain_blocks|/admin/domain_allows}, if: -> { current_user.can?(:manage_federation) }