mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-28 04:31:47 +02:00
feat: add actor domain to handle in follow page
This commit is contained in:
parent
76e1251ece
commit
de099ac643
@ -36,14 +36,15 @@
|
|||||||
<h1 class="w-full pt-8 pb-32 text-lg font-semibold text-center text-white bg-header"><?= lang(
|
<h1 class="w-full pt-8 pb-32 text-lg font-semibold text-center text-white bg-header"><?= lang(
|
||||||
'Fediverse.follow.subtitle',
|
'Fediverse.follow.subtitle',
|
||||||
) ?></h1>
|
) ?></h1>
|
||||||
<div class="flex flex-col w-full max-w-xs -mt-24 overflow-hidden shadow bg-elevated rounded-xl">
|
<div class="flex flex-col w-full -mt-24 overflow-hidden shadow max-w-fit bg-elevated rounded-xl">
|
||||||
<img src="<?= get_podcast_banner_url($actor->podcast, 'small') ?>" alt="" class="w-full aspect-[3/1] bg-header" loading="lazy" />
|
<img src="<?= get_podcast_banner_url($actor->podcast, 'small') ?>" alt="" class="w-full aspect-[3/1] bg-header" loading="lazy" />
|
||||||
<div class="flex px-4 py-2">
|
<div class="flex px-4 py-2">
|
||||||
<img src="<?= $actor->avatar_image_url ?>" alt="<?= esc($actor->display_name) ?>"
|
<img src="<?= $actor->avatar_image_url ?>" alt="<?= esc($actor->display_name) ?>"
|
||||||
class="w-16 h-16 mr-4 -mt-8 rounded-full ring-2 ring-background-elevated aspect-square" loading="lazy" />
|
class="w-16 h-16 mr-4 -mt-8 rounded-full ring-2 ring-background-elevated aspect-square" loading="lazy" />
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<p class="font-semibold"><?= esc($actor->display_name) ?></p>
|
<p class="font-semibold"><?= esc($actor->display_name) ?></p>
|
||||||
<p class="text-sm text-skin-muted">@<?= esc($actor->username) ?></p>
|
<p class="text-sm text-skin-muted">
|
||||||
|
<span title="@<?= esc($actor->username) ?>@<?= esc($actor->domain) ?>" data-tooltip="bottom">@<?= esc($actor->username) ?>@<?= esc($actor->domain) ?></span></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -53,7 +54,6 @@
|
|||||||
<form action="<?= route_to('attempt-follow', esc($actor->username)) ?>" method="POST" class="flex flex-col gap-y-2">
|
<form action="<?= route_to('attempt-follow', esc($actor->username)) ?>" method="POST" class="flex flex-col gap-y-2">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<?= view('_message_block') ?>
|
<?= view('_message_block') ?>
|
||||||
|
|
||||||
<Forms.Field
|
<Forms.Field
|
||||||
name="handle"
|
name="handle"
|
||||||
label="<?= esc(lang('Fediverse.your_handle')) ?>"
|
label="<?= esc(lang('Fediverse.your_handle')) ?>"
|
||||||
|
Loading…
Reference in New Issue
Block a user