mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-10 16:25:47 +00:00
47 lines
1.5 KiB
PHP
47 lines
1.5 KiB
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Fediverse.blocked_domains') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Fediverse.blocked_domains') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<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') ?>" required="true" />
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('Fediverse.block_lists_form.submit') ?></Button>
|
|
</form>
|
|
|
|
<?= 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 uri="' . route_to('fediverse-unblock-domain', $blockedDomain->name) . '" variant="info" size="small" type="submit">' . lang('Fediverse.list.unblock') . '</Button>' .
|
|
'</form>';
|
|
},
|
|
],
|
|
],
|
|
$blockedDomains,
|
|
'mt-8'
|
|
) ?>
|
|
|
|
<?= $this->endSection() ?>
|