5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 18:36: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

@ -1,6 +1,6 @@
.d-flex.py-2
= render 'components/dropdown', text: t('.text_checked') do
= render 'components/profiles_checked_submenu'
= render 'components/profiles_checked_submenu'
= 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: '/'
= render 'components/dropdown_item', text: t('.submenu_reject'), path: '/'
= render 'components/dropdown_item', text: t('.submenu_block'), path: '/'
- ActorModeration.aasm.states.map(&:name).each do |actor_state|
= render 'components/dropdown_item',
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'
.col-11
-# Filtros
= render 'components/profiles_filters'
= render 'components/profiles_filters', actor_moderations: actor_moderations
.col-12
- actor_moderations.find_each do |actor_moderation|
%hr

View file

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

View file

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