5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 21:46:22 +00:00

feat: cargar las fediblocks en la pantalla

This commit is contained in:
f 2024-02-27 14:23:57 -03:00
parent 67fec65df1
commit ec328d31b9
No known key found for this signature in database
4 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@
.card.mt-3.mb-3
.card-body
.d-flex.flex-row
= render 'components/checkbox', id: blocklist['id'] do
%span.h4= blocklist["title"]
= render 'components/checkbox', id: state.id, checked: state.enabled? do
%span.h4= blocklist.title
%p
%a{ href: blocklist['link'] }= blocklist['title']
%a{ href: blocklist.url }= t('.more')

View file

@ -1,2 +1,2 @@
- @blocklists.each do |blocklist|
= render 'components/block_list', blocklist: blocklist
- blocklists.each do |blocklist|
= render 'components/block_list', blocklist: blocklist.fediblock, state: blocklist

View file

@ -19,5 +19,5 @@
%div
%h3.mt-5= t('moderation_queue.instances.title')
%lead= t('moderation_queue.instances.description')
= render 'components/block_lists', blocklists: @blocklists
= render 'components/block_lists', blocklists: fediblock_states
= render 'moderation_queue/block_instances_textarea'

View file

@ -5,7 +5,7 @@
.col
- summary = t('.instances')
= render 'layouts/details', summary: summary do
= render 'moderation_queue/instances', site: @site, instance_moderations: @instance_moderations
= render 'moderation_queue/instances', site: @site, instance_moderations: @instance_moderations, fediblock_states: @site.fediblock_states
%hr
- summary = t('.accounts')
= render 'layouts/details', summary: summary do