49 lines
2.3 KiB
Cheetah
49 lines
2.3 KiB
Cheetah
{{define "header"}}
|
|
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<link rel="shortcut icon" href="/statics/favicon.ico" type="image/x-icon"/>
|
|
<link rel="stylesheet" href="/statics/css/bootstrap.min.css" />
|
|
<link rel="stylesheet" href="/statics/css/index.css" />
|
|
{{block "css" .}}{{end}}
|
|
<title>HLS流媒体</title>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<nav class="navbar navbar-light bg-light navbar-wh">
|
|
<a class="navbar-brand navbar-brand-fs" href="/">
|
|
<!-- <img src="/statics/img/logo.png" width="30" height="30" class="d-inline-block align-top" alt="HLS流媒体"> -->
|
|
<svg class="logo" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="HLS流媒体">
|
|
<path d="M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"></path>
|
|
</svg>
|
|
HLS流媒体
|
|
</a>
|
|
<ul class="flex oauth">
|
|
{{if currentUser}}
|
|
<li style="font-size: 12px;">
|
|
欢迎您: {{ currentUser.Name }}
|
|
</li>
|
|
<li style="font-size: 12px;">
|
|
<a href="/me/videos">我的视频</a>
|
|
</li>
|
|
<li style="font-size: 12px;">
|
|
<a href="/logout" class="btn btn-primary btn-sm">退出</a>
|
|
</li>
|
|
{{else}}
|
|
<li>
|
|
<a href="/login" class="btn btn-outline-primary btn-sm">登录</a>
|
|
</li>
|
|
<li>
|
|
<a href="/register" class="btn btn-primary btn-sm">注册</a>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
</nav>
|
|
{{end}}
|
|
<!-- </div>
|
|
<script src="/statics/js/jquery.slim.min.js"></script>
|
|
<script src="/statics/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html> --> |