2021-04-02 17:20:02 +00:00
|
|
|
<?= $this->extend('podcast/_layout_authenticated') ?>
|
|
|
|
|
|
|
|
<?= $this->section('meta-tags') ?>
|
|
|
|
<link type="application/rss+xml" rel="alternate" title="<?= $podcast->title ?>" href="<?= $podcast->feed_url ?>"/>
|
|
|
|
|
|
|
|
<title><?= $podcast->title ?></title>
|
|
|
|
<meta name="description" content="<?= htmlspecialchars(
|
|
|
|
$podcast->description,
|
|
|
|
) ?>" />
|
|
|
|
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
|
|
|
<link rel="canonical" href="<?= current_url() ?>" />
|
|
|
|
<meta property="og:title" content="<?= $podcast->title ?>" />
|
|
|
|
<meta property="og:description" content="<?= $podcast->description ?>" />
|
|
|
|
<meta property="og:locale" content="<?= $podcast->language_code ?>" />
|
|
|
|
<meta property="og:site_name" content="<?= $podcast->title ?>" />
|
|
|
|
<meta property="og:url" content="<?= current_url() ?>" />
|
|
|
|
<meta property="og:image" content="<?= $podcast->image->large_url ?>" />
|
|
|
|
<meta property="og:image:width" content="<?= config('Images')->largeSize ?>" />
|
|
|
|
<meta property="og:image:height" content="<?= config('Images')->largeSize ?>" />
|
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
2021-08-09 10:28:16 +00:00
|
|
|
|
|
|
|
<?= service('vite')->asset('styles/index.css', 'css') ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-08-09 10:28:16 +00:00
|
|
|
<nav class="sticky z-20 flex justify-center pt-2 text-lg top-12 sm:top-0 bg-pine-50">
|
2021-04-02 17:20:02 +00:00
|
|
|
<a href="<?= route_to(
|
|
|
|
'podcast-activity',
|
2021-07-26 13:10:46 +00:00
|
|
|
$podcast->handle,
|
2021-04-02 17:20:02 +00:00
|
|
|
) ?>" class="px-4 py-1 mr-8 font-semibold border-b-4 text-pine-800 border-pine-800"><?= lang(
|
|
|
|
'Podcast.activity',
|
|
|
|
) ?></a>
|
|
|
|
<a href="<?= route_to(
|
|
|
|
'podcast-episodes',
|
2021-07-26 13:10:46 +00:00
|
|
|
$podcast->handle,
|
2021-04-02 17:20:02 +00:00
|
|
|
) ?>" class="px-4 py-1 rounded-full hover:bg-pine-100"><?= lang(
|
|
|
|
'Podcast.episodes',
|
|
|
|
) ?></a>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<section class="max-w-2xl px-6 py-8 mx-auto">
|
2021-08-13 11:07:29 +00:00
|
|
|
<?= form_open(route_to('post-attempt-create', interact_as_actor()->username), [
|
2021-04-02 17:20:02 +00:00
|
|
|
'class' => 'flex p-4 bg-white shadow rounded-xl',
|
|
|
|
]) ?>
|
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
|
|
|
<?= view('_message_block') ?>
|
|
|
|
|
|
|
|
<img src="<?= interact_as_actor()
|
|
|
|
->avatar_image_url ?>" alt="<?= interact_as_actor()
|
|
|
|
->display_name ?>" class="w-12 h-12 mr-4 rounded-full" />
|
|
|
|
<div class="flex flex-col flex-1 min-w-0">
|
|
|
|
<?= form_textarea(
|
|
|
|
[
|
|
|
|
'id' => 'message',
|
|
|
|
'name' => 'message',
|
|
|
|
'class' => 'form-textarea',
|
|
|
|
'required' => 'required',
|
2021-08-13 11:07:29 +00:00
|
|
|
'placeholder' => lang('Post.form.message_placeholder'),
|
2021-04-02 17:20:02 +00:00
|
|
|
],
|
|
|
|
old('message', '', false),
|
|
|
|
['rows' => 2],
|
|
|
|
) ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'episode_url',
|
|
|
|
'name' => 'episode_url',
|
|
|
|
'class' => 'form-input mb-2',
|
|
|
|
'placeholder' =>
|
2021-08-13 11:07:29 +00:00
|
|
|
lang('Post.form.episode_url_placeholder') .
|
2021-04-02 17:20:02 +00:00
|
|
|
' (' .
|
|
|
|
lang('Common.optional') .
|
|
|
|
')',
|
|
|
|
'type' => 'url',
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= button(
|
2021-08-13 11:07:29 +00:00
|
|
|
lang('Post.form.submit'),
|
2021-05-06 14:00:48 +00:00
|
|
|
'',
|
2021-04-02 17:20:02 +00:00
|
|
|
['variant' => 'primary', 'size' => 'small'],
|
|
|
|
['type' => 'submit', 'class' => 'self-end'],
|
|
|
|
) ?>
|
|
|
|
</div>
|
|
|
|
<?= form_close() ?>
|
|
|
|
<hr class="my-4 border-2 border-pine-100">
|
|
|
|
|
|
|
|
<div class="space-y-8">
|
2021-08-13 11:07:29 +00:00
|
|
|
<?php foreach ($posts as $post): ?>
|
|
|
|
<?php if ($post->reblog_of_id !== null): ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= view('podcast/_partials/reblog_authenticated', [
|
2021-08-13 11:07:29 +00:00
|
|
|
'post' => $post->reblog_of_post,
|
2021-04-02 17:20:02 +00:00
|
|
|
]) ?>
|
|
|
|
<?php else: ?>
|
2021-08-13 11:07:29 +00:00
|
|
|
<?= view('podcast/_partials/post_authenticated', ['post' => $post]) ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|