mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-10 12:39:38 +02:00
- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
100 lines
3.4 KiB
PHP
100 lines
3.4 KiB
PHP
<?= $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="stylesheet" href="/assets/index.css"/>
|
|
<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" />
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<nav class="sticky top-0 z-20 flex justify-center pt-2 text-lg bg-pine-50">
|
|
<a href="<?= route_to(
|
|
'podcast-activity',
|
|
$podcast->name,
|
|
) ?>" 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',
|
|
$podcast->name,
|
|
) ?>" 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">
|
|
<?= form_open(route_to('note-attempt-create', interact_as_actor()->username), [
|
|
'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',
|
|
'placeholder' => lang('Note.form.message_placeholder'),
|
|
],
|
|
old('message', '', false),
|
|
['rows' => 2],
|
|
) ?>
|
|
<?= form_input([
|
|
'id' => 'episode_url',
|
|
'name' => 'episode_url',
|
|
'class' => 'form-input mb-2',
|
|
'placeholder' =>
|
|
lang('Note.form.episode_url_placeholder') .
|
|
' (' .
|
|
lang('Common.optional') .
|
|
')',
|
|
'type' => 'url',
|
|
]) ?>
|
|
|
|
<?= button(
|
|
lang('Note.form.submit'),
|
|
'',
|
|
['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">
|
|
<?php foreach ($notes as $note): ?>
|
|
<?php if ($note->is_reblog): ?>
|
|
<?= view('podcast/_partials/reblog_authenticated', [
|
|
'note' => $note->reblog_of_note,
|
|
]) ?>
|
|
<?php else: ?>
|
|
<?= view('podcast/_partials/note_authenticated', ['note' => $note]) ?>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</section>
|
|
|
|
<?= $this->endSection() ?>
|