mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-27 20:21:59 +02:00
fix: include missing variables on public ui's episode page and remote_actions
This commit is contained in:
parent
776eec6f0d
commit
193b373bc9
@ -29,7 +29,7 @@
|
|||||||
) ?>"><?= icon('heart', 'text-xl mr-1 text-gray-500') . $comment->likes_count ?></button>
|
) ?>"><?= icon('heart', 'text-xl mr-1 text-gray-500') . $comment->likes_count ?></button>
|
||||||
<?php if ($comment->replies_count): ?>
|
<?php if ($comment->replies_count): ?>
|
||||||
<?= anchor(
|
<?= anchor(
|
||||||
route_to('episode-comment', $comment->episode->podcast->handle, $episode->slug, $comment->id),
|
route_to('episode-comment', $comment->episode->podcast->handle, $comment->episode->slug, $comment->id),
|
||||||
icon('caret-down', 'text-xl mr-1') . lang('Comment.view_replies', [
|
icon('caret-down', 'text-xl mr-1') . lang('Comment.view_replies', [
|
||||||
'numberOfReplies' => $comment->replies_count,
|
'numberOfReplies' => $comment->replies_count,
|
||||||
]),
|
]),
|
||||||
|
@ -55,12 +55,14 @@
|
|||||||
</form>
|
</form>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php foreach ($episode->comments as $comment): ?>
|
<div class="flex flex-col gap-y-2">
|
||||||
<?= view('episode/_partials/comment', [
|
<?php foreach ($episode->comments as $comment): ?>
|
||||||
|
<?= view('episode/_partials/comment', [
|
||||||
'comment' => $comment,
|
'comment' => $comment,
|
||||||
'podcast' => $podcast,
|
'podcast' => $podcast,
|
||||||
]) ?>
|
]) ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?= $this->endSection()
|
<?= $this->endSection()
|
||||||
?>
|
?>
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<footer>
|
<?php declare(strict_types=1);
|
||||||
<?php if (can_user_interact()): ?>
|
|
||||||
|
if (can_user_interact()): ?>
|
||||||
|
<footer>
|
||||||
<form action="<?= route_to('post-attempt-action', interact_as_actor()->username, $reply->id) ?>" method="POST" class="flex items-start gap-x-6">
|
<form action="<?= route_to('post-attempt-action', interact_as_actor()->username, $reply->id) ?>" method="POST" class="flex items-start gap-x-6">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<?= anchor(
|
<?= anchor(
|
||||||
@ -85,7 +87,9 @@
|
|||||||
</form>
|
</form>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</nav>
|
</nav>
|
||||||
<?php else: ?>
|
</footer>
|
||||||
|
<?php else: ?>
|
||||||
|
<footer class="flex gap-x-6">
|
||||||
<?= anchor(
|
<?= anchor(
|
||||||
route_to('post', $podcast->handle, $reply->id),
|
route_to('post', $podcast->handle, $reply->id),
|
||||||
icon('chat', 'text-lg mr-1 text-gray-400') . $reply->replies_count,
|
icon('chat', 'text-lg mr-1 text-gray-400') . $reply->replies_count,
|
||||||
@ -120,5 +124,5 @@
|
|||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
) ?>
|
) ?>
|
||||||
<?php endif; ?>
|
</footer>
|
||||||
</footer>
|
<?php endif; ?>
|
||||||
|
@ -38,7 +38,11 @@
|
|||||||
) ?></h1>
|
) ?></h1>
|
||||||
</header>
|
</header>
|
||||||
<main class="flex-1 max-w-xl px-4 pb-8 mx-auto -mt-24">
|
<main class="flex-1 max-w-xl px-4 pb-8 mx-auto -mt-24">
|
||||||
<?= $this->include('post/_partials/card') ?>
|
<?= view('post/_partials/card', [
|
||||||
|
'index' => 1,
|
||||||
|
'podcast' => $podcast,
|
||||||
|
'post' => $post,
|
||||||
|
]) ?>
|
||||||
|
|
||||||
<form action="<?= route_to('post-attempt-remote-action', $post->id, $action) ?>" method="POST" class="flex flex-col mt-8">
|
<form action="<?= route_to('post-attempt-remote-action', $post->id, $action) ?>" method="POST" class="flex flex-col mt-8">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user