mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 23:06:21 +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
|
@ -1,6 +1,6 @@
|
||||||
.d-flex.py-2
|
.d-flex.py-2
|
||||||
= render 'components/dropdown', text: t('.text_checked') do
|
= 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/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: '/'
|
- 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))
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -85,10 +85,11 @@ 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})"
|
||||||
block_lists:
|
submenu_reported: "Reported (%{count})"
|
||||||
|
block_lists:
|
||||||
title: Block lists
|
title: Block lists
|
||||||
comments_btn_box:
|
comments_btn_box:
|
||||||
text_pause: Pause
|
text_pause: Pause
|
||||||
|
|
|
@ -85,10 +85,11 @@ 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})"
|
||||||
block_lists:
|
submenu_reported: "Reportadas (%{count})"
|
||||||
|
block_lists:
|
||||||
title: Listas de bloqueo
|
title: Listas de bloqueo
|
||||||
comments_btn_box:
|
comments_btn_box:
|
||||||
text_pause: Pausa
|
text_pause: Pausa
|
||||||
|
|
Loading…
Reference in a new issue