5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 03:46:23 +00:00

feat: ver la cuenta de cuentas por moderar

This commit is contained in:
f 2024-02-28 18:42:48 -03:00
parent 25c9963284
commit 2edafc8901
No known key found for this signature in database
5 changed files with 17 additions and 14 deletions

View file

@ -3,4 +3,4 @@
= render 'components/profiles_checked_submenu' = render 'components/profiles_checked_submenu'
= render 'components/dropdown', text: t('.text_show') do = render 'components/dropdown', text: t('.text_show') do
= render 'components/profiles_show_submenu' = render 'components/profiles_show_submenu', actor_moderations: actor_moderations

View file

@ -1,3 +1,4 @@
= render 'components/dropdown_item', text: t('.submenu_accept'), path: '/' - ActorModeration.aasm.states.map(&:name).each do |actor_state|
= render 'components/dropdown_item', text: t('.submenu_reject'), path: '/' = render 'components/dropdown_item',
= render 'components/dropdown_item', text: t('.submenu_block'), path: '/' text: t(".submenu_#{actor_state}", count: actor_moderations.unscope(where: :aasm_state).public_send(actor_state).count),
path: site_moderation_queue_path(params.permit(:state, :actor_state).merge(actor_state: actor_state))

View file

@ -3,7 +3,7 @@
= render 'components/select_all', id: 'actors' = render 'components/select_all', id: 'actors'
.col-11 .col-11
-# Filtros -# Filtros
= render 'components/profiles_filters' = render 'components/profiles_filters', actor_moderations: actor_moderations
.col-12 .col-12
- actor_moderations.find_each do |actor_moderation| - actor_moderations.find_each do |actor_moderation|
%hr %hr

View file

@ -85,9 +85,10 @@ en:
submenu_reject: Reject submenu_reject: Reject
submenu_block: Block submenu_block: Block
profiles_show_submenu: profiles_show_submenu:
submenu_accept: Accept submenu_paused: "Paused (%{count})"
submenu_block: Block submenu_allowed: "Allowed (%{count})"
submenu_reject: Reject submenu_blocked: "Blocked (%{count})"
submenu_reported: "Reported (%{count})"
block_lists: block_lists:
title: Block lists title: Block lists
comments_btn_box: comments_btn_box:

View file

@ -85,9 +85,10 @@ es:
submenu_reject: Rechazado submenu_reject: Rechazado
submenu_block: Bloqueado submenu_block: Bloqueado
profiles_show_submenu: profiles_show_submenu:
submenu_accept: Aceptado submenu_paused: "Pausadas (%{count})"
submenu_block: Bloqueado submenu_allowed: "Permitidas (%{count})"
submenu_reject: Rechazado submenu_blocked: "Bloqueadas (%{count})"
submenu_reported: "Reportadas (%{count})"
block_lists: block_lists:
title: Listas de bloqueo title: Listas de bloqueo
comments_btn_box: comments_btn_box: