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_actors') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Fediverse.blocked_actors') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<form action="<?= route_to('fediverse-attempt-block-actor') ?>" method="POST" class="flex flex-col max-w-md">
|
2022-03-04 14:33:48 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2021-09-21 15:51:04 +00:00
|
|
|
<Forms.Field name="handle" label="<?= lang('Fediverse.block_lists_form.handle') ?>" hint="<?= lang('Fediverse.block_lists_form.handle_hint') ?>" required="true" />
|
2021-09-15 15:58:21 +00:00
|
|
|
<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 ($blockedActor) {
|
2022-03-04 14:33:48 +00:00
|
|
|
return esc($blockedActor->username);
|
2021-04-02 17:20:02 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'header' => lang('Common.actions'),
|
|
|
|
'cell' => function ($blockedActor) {
|
|
|
|
return '<form action="' .
|
|
|
|
route_to('fediverse-attempt-unblock-actor') .
|
|
|
|
'" method="POST">' .
|
|
|
|
'<input name="actor_id" type="hidden" value="' .
|
|
|
|
$blockedActor->id .
|
|
|
|
'" />' .
|
|
|
|
csrf_field() .
|
2022-03-04 14:33:48 +00:00
|
|
|
'<Button uri="' . route_to('fediverse-unblock-actor', esc($blockedActor->username)) . '" variant="info" size="small" type="submit">' . lang('Fediverse.list.unblock') . '</Button>' .
|
2021-04-02 17:20:02 +00:00
|
|
|
'</form>';
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
$blockedActors,
|
2022-01-02 14:11:05 +00:00
|
|
|
'mt-8'
|
2021-04-02 17:20:02 +00:00
|
|
|
) ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|