Add highlight to moderation panel link if there are new reports
This commit is contained in:
parent
34421b34f3
commit
3a801baf1a
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue