Files
tver/internal/web/templates/layout.html
T

43 lines
1.2 KiB
HTML

{{define "layout"}}<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{.Title}} | TVer</title>
<link rel="stylesheet" href="/static/app.css">
<script src="/static/htmx-2.0.11.min.js" defer></script>
</head>
<body>
<header>
<strong>TVer</strong>
<nav aria-label="メイン" hx-boost="true">
<a href="/">新着</a>
<a href="/queue">待ち行列</a>
<a href="/subscriptions">登録番組</a>
<a href="/library">ライブラリ</a>
</nav>
</header>
<main>
{{if .Newer}}
{{template "newer_page" .Newer}}
{{else if .Queue}}
{{template "queue_page" .Queue}}
{{else if .Subscriptions}}
{{template "subscriptions_page" .Subscriptions}}
{{else if .Library}}
{{template "library_page" .Library}}
{{else if .Series}}
{{template "series_page" .Series}}
{{else if .Video}}
{{template "video_page" .Video}}
{{else if .DeleteConfirm}}
{{template "delete_confirm_page" .DeleteConfirm}}
{{else if .DeleteResult}}
{{template "delete_result_page" .DeleteResult}}
{{else}}
<h1>{{.Title}}</h1>
{{end}}
</main>
</body>
</html>{{end}}