2020-07-10 12:20:25 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2020-07-16 10:08:23 +00:00
|
|
|
<title>Castopod Admin</title>
|
2020-07-10 12:20:25 +00:00
|
|
|
<meta name="description" content="Castopod is an open-source hosting platform made for podcasters who want engage and interact with their audience.">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
|
|
|
<link rel="stylesheet" href="/index.css">
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="flex flex-col min-h-screen mx-auto">
|
|
|
|
<header class="text-white bg-gray-900 border-b">
|
2020-07-16 10:08:23 +00:00
|
|
|
<div class="flex items-center px-4 py-4 mx-auto">
|
|
|
|
<a href="<?= route_to('admin') ?>" class="text-xl">Castopod Admin</a>
|
|
|
|
<a href="<?= route_to(
|
|
|
|
'home'
|
|
|
|
) ?>" class="ml-4 text-sm underline hover:no-underline">Go to website</a>
|
|
|
|
<nav class="ml-auto">
|
2020-07-10 12:20:25 +00:00
|
|
|
<span class="mr-2">Welcome, <?= user()->username ?></span>
|
|
|
|
<a class="px-4 py-2 border hover:bg-gray-800" href="<?= route_to(
|
|
|
|
'logout'
|
|
|
|
) ?>">Logout</a>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div class="flex flex-1">
|
|
|
|
<?= view('admin/_sidenav') ?>
|
|
|
|
<main class="container flex-1 px-4 py-6 mx-auto">
|
2020-07-16 10:08:23 +00:00
|
|
|
<h1 class="mb-4 text-2xl"><?= $this->renderSection('title') ?></h1>
|
|
|
|
<?= view('_message_block') ?>
|
2020-07-10 12:20:25 +00:00
|
|
|
<?= $this->renderSection('content') ?>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
<footer class="container px-2 py-4 mx-auto text-sm text-right border-t">
|
|
|
|
Powered by <a class="underline hover:no-underline" href="https://castopod.org" target="_blank" rel="noreferrer noopener">Castopod</a>, a <a class="underline hover:no-underline" href="https://podlibre.org/" target="_blank" rel="noreferrer noopener">Podlibre</a> initiative.
|
|
|
|
</footer>
|
|
|
|
</body>
|