5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 23:26: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.mt-3.mb-3
.card-body .card-body
.d-flex.flex-row .d-flex.flex-row
= render 'components/checkbox', id: blocklist['id'] do = render 'components/checkbox', id: state.id, checked: state.enabled? do
%span.h4= blocklist["title"] %span.h4= blocklist.title
%p %p
%a{ href: blocklist['link'] }= blocklist['title'] %a{ href: blocklist.url }= t('.more')

View file

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

View file

@ -19,5 +19,5 @@
%div %div
%h3.mt-5= t('moderation_queue.instances.title') %h3.mt-5= t('moderation_queue.instances.title')
%lead= t('moderation_queue.instances.description') %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' = render 'moderation_queue/block_instances_textarea'

View file

@ -5,7 +5,7 @@
.col .col
- summary = t('.instances') - summary = t('.instances')
= render 'layouts/details', summary: summary do = 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 %hr
- summary = t('.accounts') - summary = t('.accounts')
= render 'layouts/details', summary: summary do = render 'layouts/details', summary: summary do