37 lines
1012 B
HTML
37 lines
1012 B
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 .Video}}
|
|
{{template "video_page" .Video}}
|
|
{{else}}
|
|
<h1>{{.Title}}</h1>
|
|
{{end}}
|
|
</main>
|
|
</body>
|
|
</html>{{end}}
|