mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 21:26:21 +00:00
feat: cargar las fediblocks en la pantalla
This commit is contained in:
parent
67fec65df1
commit
ec328d31b9
4 changed files with 7 additions and 7 deletions
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue