From 3a801baf1a0a9b062970bbc8834d3b2dbed0ae62 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Fri, 1 Mar 2024 22:12:17 +0100 Subject: [PATCH] Add highlight to moderation panel link if there are new reports --- app/views/navigation/dropdown/_profile.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/navigation/dropdown/_profile.html.haml b/app/views/navigation/dropdown/_profile.html.haml index aef649a9..1e25574a 100644 --- a/app/views/navigation/dropdown/_profile.html.haml +++ b/app/views/navigation/dropdown/_profile.html.haml @@ -16,8 +16,8 @@ = 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: moderation_reports_path } - %i.fa.fa-fw.fa-gavel + %a.dropdown-item{ class: @has_new_reports ? "text-primary" : nil, href: moderation_reports_path } + %i.fa.fa-fw.fa-gavel{ class: @has_new_reports ? "fa-fade" : nil } = t(".moderation") - if current_user.has_cached_role?(:administrator) %a.dropdown-item{ href: admin_dashboard_path }