mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 14:26:22 +00:00
fix: no cachear formularios #15570
This commit is contained in:
parent
30f2f0a442
commit
cfe70e3a89
6 changed files with 42 additions and 43 deletions
|
@ -5,12 +5,12 @@
|
|||
.col-1
|
||||
= render 'components/checkbox', id: actor_moderation.id, form: form, name: 'actor_moderation[]', value: actor_moderation.id, data: { target: 'select-all.input' }
|
||||
.col-11
|
||||
%h4
|
||||
= link_to text_plain(profile['name']), site_actor_moderation_path(id: actor_moderation)
|
||||
.mb-3
|
||||
= sanitize profile['summary']
|
||||
- cache [actor_moderation, profile] do
|
||||
%h4
|
||||
= link_to text_plain(profile['name']), site_actor_moderation_path(id: actor_moderation)
|
||||
.mb-3
|
||||
= sanitize profile['summary']
|
||||
|
||||
-# Botones de Moderación
|
||||
- cache actor_moderation do
|
||||
.d-flex.pb-4
|
||||
= render 'components/profiles_btn_box', actor_moderation: actor_moderation
|
||||
.d-flex.pb-4
|
||||
= render 'components/profiles_btn_box', actor_moderation: actor_moderation
|
||||
|
|
|
@ -12,6 +12,5 @@
|
|||
- if actor_moderations.count.zero?
|
||||
%h4= t('moderation_queue.nothing')
|
||||
- actor_moderations.find_each do |actor_moderation|
|
||||
- cache [actor_moderation, actor_moderation.actor] do
|
||||
%hr
|
||||
= render 'account', actor_moderation: actor_moderation, profile: actor_moderation.actor.content, form: form_id
|
||||
%hr
|
||||
= render 'account', actor_moderation: actor_moderation, profile: actor_moderation.actor.content, form: form_id
|
||||
|
|
|
@ -13,22 +13,23 @@
|
|||
.col-1
|
||||
= render 'components/checkbox', id: activity_pub.id, name: 'activity_pub[]', value: activity_pub.id, data: { target: 'select-all.input' }, form: form
|
||||
.col-11
|
||||
.d-flex.flex-row.align-items-center.justify-content-between
|
||||
%h4.mb-0
|
||||
%a{ href: text_plain(comment['attributedTo']) }= text_plain profile['preferredUsername']
|
||||
%small
|
||||
= render 'layouts/time', time: text_plain(comment['published'])
|
||||
- if in_reply_to.present?
|
||||
%dl
|
||||
%dt.d-inline
|
||||
%small= t('.reply_to')
|
||||
%dd.d-inline
|
||||
%small
|
||||
%a{ href: in_reply_to }= in_reply_to
|
||||
.content
|
||||
- if summary.present?
|
||||
= render 'layouts/details', summary: summary, summary_class: 'h5' do
|
||||
- cache [activity_pub, comment] do
|
||||
.d-flex.flex-row.align-items-center.justify-content-between
|
||||
%h4.mb-0
|
||||
%a{ href: text_plain(comment['attributedTo']) }= text_plain profile['preferredUsername']
|
||||
%small
|
||||
= render 'layouts/time', time: text_plain(comment['published'])
|
||||
- if in_reply_to.present?
|
||||
%dl
|
||||
%dt.d-inline
|
||||
%small= t('.reply_to')
|
||||
%dd.d-inline
|
||||
%small
|
||||
%a{ href: in_reply_to }= in_reply_to
|
||||
.content
|
||||
- if summary.present?
|
||||
= render 'layouts/details', summary: summary, summary_class: 'h5' do
|
||||
= sanitize comment['content']
|
||||
- else
|
||||
= sanitize comment['content']
|
||||
- else
|
||||
= sanitize comment['content']
|
||||
= render 'components/comments_btn_box', activity_pub: activity_pub
|
||||
|
|
|
@ -12,6 +12,5 @@
|
|||
- if moderation_queue.count.zero?
|
||||
%h4= t('moderation_queue.nothing')
|
||||
- moderation_queue.each do |activity_pub|
|
||||
- cache [activity_pub, activity_pub.object, activity_pub.actor] do
|
||||
%hr
|
||||
= render 'moderation_queue/comment', comment: activity_pub.object.content, profile: activity_pub.actor.content, activity_pub: activity_pub, form: form_id
|
||||
%hr
|
||||
= render 'moderation_queue/comment', comment: activity_pub.object.content, profile: activity_pub.actor.content, activity_pub: activity_pub, form: form_id
|
||||
|
|
|
@ -6,16 +6,17 @@
|
|||
.col-1
|
||||
= render 'components/checkbox', id: instance.hostname, form: form, name: 'instance_moderation[]', value: instance_moderation.id, data: { target: 'select-all.input' }
|
||||
.col-11
|
||||
%h4
|
||||
%a{ href: instance.uri }= title || instance.hostname
|
||||
- if title.present?
|
||||
= " (#{instance.hostname})".html_safe
|
||||
.content
|
||||
= sanitize instance.content['description']
|
||||
- if usuaries.present?
|
||||
%dl
|
||||
%dt.d-inline= t('.users')
|
||||
%dd.d-inline= text_plain usuaries.to_s
|
||||
- cache [instance_moderation, instance] do
|
||||
%h4
|
||||
%a{ href: instance.uri }= title || instance.hostname
|
||||
- if title.present?
|
||||
= " (#{instance.hostname})".html_safe
|
||||
.content
|
||||
= sanitize instance.content['description']
|
||||
- if usuaries.present?
|
||||
%dl
|
||||
%dt.d-inline= t('.users')
|
||||
%dd.d-inline= text_plain usuaries.to_s
|
||||
|
||||
-# Botones moderación
|
||||
.d-flex.pb-4
|
||||
|
|
|
@ -14,9 +14,8 @@
|
|||
%h4= t('moderation_queue.nothing')
|
||||
|
||||
- instance_moderations.each do |instance_moderation|
|
||||
- cache [instance_moderation, instance_moderation.instance] do
|
||||
%hr
|
||||
= render 'moderation_queue/instance', instance_moderation: instance_moderation, instance: instance_moderation.instance, form: form_id
|
||||
%hr
|
||||
= render 'moderation_queue/instance', instance_moderation: instance_moderation, instance: instance_moderation.instance, form: form_id
|
||||
|
||||
%hr
|
||||
%div
|
||||
|
|
Loading…
Reference in a new issue