2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Fediverse.blocked_domains') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Fediverse.blocked_domains') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<form action="<?= route_to('fediverse-attempt-block-domain') ?>" method="POST" class="flex flex-col max-w-md">
|
|
|
|
<Forms.Field name="domain" label="<?= lang('Fediverse.block_lists_form.domain') ?>" />
|
|
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('Fediverse.block_lists_form.submit') ?></Button>
|
|
|
|
</form>
|
2021-04-02 17:20:02 +00:00
|
|
|
|
|
|
|
<?= data_table(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'header' => lang('Fediverse.list.actor'),
|
|
|
|
'cell' => function ($blockedDomain) {
|
|
|
|
return $blockedDomain->name;
|
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'header' => lang('Common.actions'),
|
|
|
|
'cell' => function ($blockedDomain) {
|
|
|
|
return '<form action="' .
|
|
|
|
route_to('fediverse-attempt-unblock-domain') .
|
|
|
|
'" method="POST">' .
|
|
|
|
'<input name="domain" type="hidden" value="' .
|
|
|
|
$blockedDomain->name .
|
|
|
|
'" />' .
|
|
|
|
csrf_field() .
|
|
|
|
button(
|
|
|
|
lang('Fediverse.list.unblock'),
|
|
|
|
route_to(
|
|
|
|
'fediverse-unblock-domain',
|
|
|
|
$blockedDomain->name,
|
|
|
|
),
|
2021-09-08 15:51:33 +00:00
|
|
|
[
|
|
|
|
'variant' => 'info',
|
|
|
|
'size' => 'small',
|
|
|
|
],
|
2021-04-02 17:20:02 +00:00
|
|
|
[
|
|
|
|
'class' => 'mr-2',
|
|
|
|
'type' => 'submit',
|
|
|
|
],
|
|
|
|
) .
|
|
|
|
'</form>';
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
$blockedDomains,
|
2021-09-15 15:58:21 +00:00
|
|
|
'mt-8'
|
2021-04-02 17:20:02 +00:00
|
|
|
) ?>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|