Add links to user actions to filter reports by/from users
This commit is contained in:
parent
aa66ac4500
commit
d87a4adf96
|
@ -32,9 +32,15 @@
|
|||
%i.fa.fa-exclamation-triangle.fa-fw
|
||||
= t("voc.report")
|
||||
- if current_user.mod?
|
||||
%a.dropdown-item{ href: moderation_reports_path(user: user.screen_name) }
|
||||
%i.far.fa-flag.fa-fw
|
||||
= t(".reports_from", user: user.screen_name)
|
||||
%a.dropdown-item{ href: moderation_reports_path(target_user: user.screen_name) }
|
||||
%i.fas.fa-flag.fa-fw
|
||||
= t(".reports_of", user: user.screen_name)
|
||||
%a.dropdown-item{ href: '#', data: { bs_target: '#modal-privileges', bs_toggle: :modal } }
|
||||
%i.fa.fa-wrench.fa-fw
|
||||
= raw t(".privilege", user: user.screen_name)
|
||||
= t(".privilege", user: user.screen_name)
|
||||
- unless user.has_cached_role?(:administrator)
|
||||
%a.dropdown-item{ href: '#', data: { bs_target: '#modal-ban', bs_toggle: :modal } }
|
||||
%i.fa.fa-ban.fa-fw
|
||||
|
|
|
@ -703,6 +703,8 @@ en:
|
|||
ban: "Ban Control"
|
||||
title: "Actions"
|
||||
list: "Manage list memberships"
|
||||
reports_from: "Reports from %{user}"
|
||||
reports_of: "Reports of %{user}"
|
||||
profile:
|
||||
badge:
|
||||
admin: "Admin"
|
||||
|
|
Loading…
Reference in New Issue