From cc00fff8cdd6989025db7f7a722c04c646f9a8cf Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 20 Nov 2022 18:04:46 +0100 Subject: [PATCH] Add global anon blocks to moderation sidebar --- app/views/navigation/dropdown/_profile.html.haml | 3 --- app/views/tabs/_moderation.html.haml | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/navigation/dropdown/_profile.html.haml b/app/views/navigation/dropdown/_profile.html.haml index 018fde8e..8ef02d21 100644 --- a/app/views/navigation/dropdown/_profile.html.haml +++ b/app/views/navigation/dropdown/_profile.html.haml @@ -16,9 +16,6 @@ = link_to moderation_toggle_unmask_path, class: "dropdown-item", data: { turbo_method: :post } do %i.fa.fa-toggle-off = t(".unmask.enable") - %a.dropdown-item{ href: mod_anon_block_index_path } - %i.fa.fa-fw.fa-volume-off - = t(".site_wide_blocks") %a.dropdown-item{ href: moderation_reports_path } %i.fa.fa-fw.fa-gavel = t(".moderation") diff --git a/app/views/tabs/_moderation.html.haml b/app/views/tabs/_moderation.html.haml index 02202d76..bc4b481c 100644 --- a/app/views/tabs/_moderation.html.haml +++ b/app/views/tabs/_moderation.html.haml @@ -6,4 +6,8 @@ = list_group_item t(".users"), moderation_reports_path("user") = list_group_item t(".questions"), moderation_reports_path("question") +.card + .list-group + = list_group_item t(".site_wide_blocks"), mod_anon_block_index_path + .d-none.d-sm-block= render "shared/links"