mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-15 12:05:10 +00:00
30 lines
1.2 KiB
PHP
30 lines
1.2 KiB
PHP
![]() |
<?= $this->include('episode/_partials/comment_card') ?>
|
||
|
<div class="-mt-2 overflow-hidden border-b border-l border-r post-replies rounded-b-xl">
|
||
|
|
||
|
<?php if (can_user_interact()): ?>
|
||
|
<form action="<?= route_to('comment-attempt-reply', $podcast->id, $episode->id, $comment->id) ?>" method="POST" class="flex px-6 pt-8 pb-4 bg-gray-50">
|
||
|
<img src="<?= interact_as_actor()
|
||
|
->avatar_image_url ?>" alt="<?= interact_as_actor()
|
||
|
->display_name ?>" class="w-12 h-12 mr-4 rounded-full ring-gray-50 ring-2" />
|
||
|
<div class="flex flex-col flex-1">
|
||
|
<Forms.Textarea
|
||
|
name="message"
|
||
|
required="true"
|
||
|
class="w-full mb-4"
|
||
|
placeholder="<?= lang('Comment.form.reply_to_placeholder', [
|
||
|
'actorUsername' => $comment->actor->username,
|
||
|
]) ?>"
|
||
|
rows="1" />
|
||
|
<Button variant="primary" size="small" type="submit" name="action" value="reply" iconRight="send-plane"><?= lang('Comment.form.submit_reply') ?></Button>
|
||
|
</div>
|
||
|
</form>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<?php foreach ($comment->replies as $reply): ?>
|
||
|
<?= view('episode/_partials/comment_reply', [
|
||
|
'reply' => $reply,
|
||
|
]) ?>
|
||
|
<?php endforeach; ?>
|
||
|
|
||
|
</div>
|