mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 23:16:22 +00:00
feat: ver la cuenta de cuentas por moderar
This commit is contained in:
parent
25c9963284
commit
2edafc8901
5 changed files with 17 additions and 14 deletions
|
@ -3,4 +3,4 @@
|
|||
= 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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -85,9 +85,10 @@ en:
|
|||
submenu_reject: Reject
|
||||
submenu_block: Block
|
||||
profiles_show_submenu:
|
||||
submenu_accept: Accept
|
||||
submenu_block: Block
|
||||
submenu_reject: Reject
|
||||
submenu_paused: "Paused (%{count})"
|
||||
submenu_allowed: "Allowed (%{count})"
|
||||
submenu_blocked: "Blocked (%{count})"
|
||||
submenu_reported: "Reported (%{count})"
|
||||
block_lists:
|
||||
title: Block lists
|
||||
comments_btn_box:
|
||||
|
|
|
@ -85,9 +85,10 @@ es:
|
|||
submenu_reject: Rechazado
|
||||
submenu_block: Bloqueado
|
||||
profiles_show_submenu:
|
||||
submenu_accept: Aceptado
|
||||
submenu_block: Bloqueado
|
||||
submenu_reject: Rechazado
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue