2021-10-13 15:43:40 +00:00
|
|
|
<?= $this->extend('episode/_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-10-18 16:44:07 +00:00
|
|
|
<?php if (can_user_interact()): ?>
|
2021-10-22 14:35:11 +00:00
|
|
|
<?= view('_message_block') ?>
|
|
|
|
<form action="<?= route_to('comment-attempt-create', $podcast->id, $episode->id) ?>" method="POST" class="flex p-4 gap-x-2">
|
2021-10-13 15:43:40 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
|
|
|
<img src="<?= interact_as_actor()
|
2022-03-04 14:33:48 +00:00
|
|
|
->avatar_image_url ?>" alt="<?= esc(interact_as_actor()
|
|
|
|
->display_name) ?>" class="w-10 h-10 rounded-full aspect-square" loading="lazy" />
|
2021-10-13 15:43:40 +00:00
|
|
|
<div class="flex flex-col flex-1 min-w-0 gap-y-2">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Textarea
|
2021-10-13 15:43:40 +00:00
|
|
|
name="message"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-10-13 15:43:40 +00:00
|
|
|
placeholder="<?= lang('Comment.form.episode_message_placeholder') ?>"
|
|
|
|
rows="2" />
|
2024-04-26 17:57:25 +00:00
|
|
|
<?php // @icon('send-plane-2-fill')?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button class="self-end" variant="primary" size="small" type="submit" iconRight="send-plane-2-fill"><?= lang('Comment.form.submit') ?></x-Button>
|
2021-10-13 15:43:40 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2021-10-18 16:44:07 +00:00
|
|
|
<?php endif; ?>
|
2021-10-13 15:43:40 +00:00
|
|
|
|
2021-10-25 10:35:45 +00:00
|
|
|
<div class="flex flex-col gap-y-2">
|
|
|
|
<?php foreach ($episode->comments as $comment): ?>
|
|
|
|
<?= view('episode/_partials/comment', [
|
2023-06-12 14:47:38 +00:00
|
|
|
'comment' => $comment,
|
2021-10-25 10:35:45 +00:00
|
|
|
'podcast' => $podcast,
|
2021-10-13 15:43:40 +00:00
|
|
|
]) ?>
|
2021-10-25 10:35:45 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
2021-10-13 15:43:40 +00:00
|
|
|
|
|
|
|
<?= $this->endSection()
|
|
|
|
?>
|