mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 04:26:22 +00:00
feat: poder filtrar por estado de la instancia
This commit is contained in:
parent
a1b5e385b0
commit
cc7175ab99
6 changed files with 17 additions and 6 deletions
|
@ -8,7 +8,7 @@ class ModerationQueueController < ApplicationController
|
||||||
|
|
||||||
# @todo cambiar el estado por query
|
# @todo cambiar el estado por query
|
||||||
@activity_pubs = site.activity_pubs
|
@activity_pubs = site.activity_pubs
|
||||||
@instance_moderations = site.instance_moderations
|
@instance_moderations = rubanok_process(site.instance_moderations, with: InstanceModerationProcessor)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Perfil remoto de usuarie
|
# Perfil remoto de usuarie
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
= render 'components/instances_checked_submenu'
|
= render 'components/instances_checked_submenu'
|
||||||
|
|
||||||
= render 'components/dropdown', text: t('.text_show') do
|
= render 'components/dropdown', text: t('.text_show') do
|
||||||
= render 'components/comments_show_submenu'
|
= render 'components/instances_show_submenu'
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
= render 'components/dropdown_item', text: t('.submenu_allow'), path: '/'
|
= render 'components/dropdown_item', text: t('.submenu_paused'), path: site_moderation_queue_path(state: 'paused')
|
||||||
= render 'components/dropdown_item', text: t('.submenu_reject'), path: '/'
|
= render 'components/dropdown_item', text: t('.submenu_allowed'), path: site_moderation_queue_path(state: 'allowed')
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_blocked'), path: site_moderation_queue_path(state: 'blocked')
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
-# Filtros
|
-# Filtros
|
||||||
= render 'components/instances_filters'
|
= render 'components/instances_filters'
|
||||||
|
|
||||||
|
- if instance_moderations.count.zero?
|
||||||
|
%h3= t('moderation_queue.nothing')
|
||||||
|
|
||||||
- instance_moderations.each do |instance_moderation|
|
- instance_moderations.each do |instance_moderation|
|
||||||
%hr
|
%hr
|
||||||
= render 'moderation_queue/instance', instance: instance_moderation.instance
|
= render 'moderation_queue/instance', instance: instance_moderation.instance
|
||||||
|
|
|
@ -60,6 +60,10 @@ en:
|
||||||
instances_show_submenu:
|
instances_show_submenu:
|
||||||
submenu_allow: Allow
|
submenu_allow: Allow
|
||||||
submenu_reject: Reject
|
submenu_reject: Reject
|
||||||
|
instances_show_submenu:
|
||||||
|
submenu_paused: Moderated
|
||||||
|
submenu_allowed: Allowed
|
||||||
|
submenu_blocked: Blocked
|
||||||
comments_filters:
|
comments_filters:
|
||||||
text_show: Show
|
text_show: Show
|
||||||
text_checked: With selected
|
text_checked: With selected
|
||||||
|
@ -102,6 +106,7 @@ en:
|
||||||
text_deny: Block
|
text_deny: Block
|
||||||
text_report: Report
|
text_report: Report
|
||||||
moderation_queue:
|
moderation_queue:
|
||||||
|
nothing: "There's nothing for this filter"
|
||||||
index:
|
index:
|
||||||
title: Moderation
|
title: Moderation
|
||||||
instances: Instances
|
instances: Instances
|
||||||
|
|
|
@ -58,8 +58,9 @@ es:
|
||||||
submenu_allow: Permitir todo
|
submenu_allow: Permitir todo
|
||||||
submenu_reject: Rechazado
|
submenu_reject: Rechazado
|
||||||
instances_show_submenu:
|
instances_show_submenu:
|
||||||
submenu_allow: Permitido
|
submenu_paused: Pausadas
|
||||||
submenu_reject: Rechazado
|
submenu_allowed: Permitidas
|
||||||
|
submenu_blocked: Bloqueadas
|
||||||
comments_filters:
|
comments_filters:
|
||||||
text_show: Ver
|
text_show: Ver
|
||||||
text_checked: Con los marcados
|
text_checked: Con los marcados
|
||||||
|
@ -102,6 +103,7 @@ es:
|
||||||
text_deny: Bloquear
|
text_deny: Bloquear
|
||||||
text_report: Reportar
|
text_report: Reportar
|
||||||
moderation_queue:
|
moderation_queue:
|
||||||
|
nothing: 'No hay nada para este filtro'
|
||||||
index:
|
index:
|
||||||
title: Actividades de moderación
|
title: Actividades de moderación
|
||||||
instances: Instancias
|
instances: Instancias
|
||||||
|
|
Loading…
Reference in a new issue