picgo/view/layout.html

76 lines
3.3 KiB
HTML
Raw Normal View History

2024-07-12 20:32:33 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
2024-07-12 20:32:33 +08:00
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="/static/img/favicon.ico">
2024-07-12 20:32:33 +08:00
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
2024-07-14 20:31:27 +08:00
<link href="/static/css/sweetalert.css" rel="stylesheet">
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src="/static/js/popper.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/sweetalert.min.js"></script>
<script src="/static/js/common.js"></script>
{{template "style" .}}
<title>{{.Title}}</title>
2024-07-12 20:32:33 +08:00
</head>
<body>
<div class="container-fluid bg-dark" style="padding-left: 0; padding-right: 0">
<div class="container" style="padding-left: 0; padding-right: 0">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="/">后台管理</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse pl-5" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link {{if eq .Active "/"}}active{{end}}" href="/">图片上传</a>
2024-07-12 20:32:33 +08:00
</li>
{{ if .IsSuper }}
<li class="nav-item">
<a class="nav-link {{if eq .Active "/user"}}active{{end}}" href="/user">用户管理</a>
2024-07-12 20:32:33 +08:00
</li>
<li class="nav-item">
<a class="nav-link {{if eq .Active "/domain"}}active{{end}}" href="/domain">域名管理</a>
2024-07-12 20:32:33 +08:00
</li>
<li class="nav-item">
<a class="nav-link {{if eq .Active "/picture"}}active{{end}}" href="/picture">图片管理</a>
2024-07-12 20:32:33 +08:00
</li>
{{ end }}
2024-07-12 20:32:33 +08:00
</ul>
</div>
</nav>
</div>
</div>
<div class="container" style="padding: 20px">
2024-07-14 20:31:27 +08:00
{{ .csrfField }}
{{template "content" .}}
</div>
<!-- 弹出表单模态框 -->
<div class="modal fade" id="genericFormModal" tabindex="-1" aria-labelledby="genericFormModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="genericFormModalLabel">标题</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form id="genericForm">
<!-- 动态表单内容 -->
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" id="genericFormSubmit">提交</button>
</div>
</div>
</div>
</div>
2024-07-14 20:31:27 +08:00
{{template "script" .}}
2024-07-12 20:32:33 +08:00
</body>
</html>