mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 23:36: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.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')
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue