mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 21:26:21 +00:00
feat: apartado de cuentas dentro de actividades de moderación #15091
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
c8267c44e8
commit
6b0d2ded91
4 changed files with 8 additions and 11 deletions
|
@ -4,21 +4,17 @@
|
||||||
class ModerationQueueController < ApplicationController
|
class ModerationQueueController < ApplicationController
|
||||||
# Cola de moderación viendo todo el sitio
|
# Cola de moderación viendo todo el sitio
|
||||||
def index
|
def index
|
||||||
@moderation_queue = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'moderation_queue.yaml')))
|
dummy_data
|
||||||
@remote_profile = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'remote_profile.yaml')))
|
|
||||||
@moderation_queue.each do |activity|
|
|
||||||
activity['attributedTo'] = @remote_profile
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Perfil remoto de usuarie
|
# Perfil remoto de usuarie
|
||||||
def remote_profile
|
def remote_profile
|
||||||
@remote_profile = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'remote_profile.yaml')))
|
dummy_data
|
||||||
end
|
end
|
||||||
|
|
||||||
# todon.nl está usando /api/v2/instance
|
# todon.nl está usando /api/v2/instance
|
||||||
# mauve.moe usa /api/v1/instance
|
# mauve.moe usa /api/v1/instance
|
||||||
def instances
|
def instances
|
||||||
@instances = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'instances.yaml')))
|
dummy_data
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
%a{href: profile['id']}= profile['preferredUsername']
|
||||||
|
%p= sanitize profile['summary']
|
|
@ -1,6 +1,3 @@
|
||||||
- @moderation_queue.each do |comment|
|
|
||||||
= render 'account', comment: comment, profile: @remote_profile
|
|
||||||
- filtros_moderation_queue
|
|
||||||
- botoneras_moderation_queue
|
- botoneras_moderation_queue
|
||||||
|
|
||||||
.d-flex.py-2.justify-content-center
|
.d-flex.py-2.justify-content-center
|
||||||
|
@ -12,4 +9,6 @@
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_allow'), path: '/'
|
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_allow'), path: '/'
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
|
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
|
||||||
|
|
||||||
|
- @moderation_queue.map{|c| c['attributedTo']}.uniq.each do |remote_profile|
|
||||||
|
= render 'account', profile: remote_profile
|
||||||
= render 'moderation_queue/button_box', btn_params: @profile_btn_params
|
= render 'moderation_queue/button_box', btn_params: @profile_btn_params
|
||||||
|
|
|
@ -14,7 +14,7 @@ es:
|
||||||
profile_published: Publicada
|
profile_published: Publicada
|
||||||
profile_summary: Resumen
|
profile_summary: Resumen
|
||||||
profile_button_box:
|
profile_button_box:
|
||||||
text_approve: Aprovar siempre
|
text_approve: Aprobar siempre
|
||||||
text_check: Revisar siempre
|
text_check: Revisar siempre
|
||||||
text_deny: Bloquear
|
text_deny: Bloquear
|
||||||
text_report: Reportar
|
text_report: Reportar
|
||||||
|
|
Loading…
Reference in a new issue