picgo/view/layout.html

74 lines
2.9 KiB
HTML
Raw Normal View History

2024-07-12 20:32:33 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{.Title}}</title>
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<link href="/static/css/custom.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Admin Panel</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" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item {{if eq .Active "/"}}active{{end}}">
<a class="nav-link" href="/">Dashboard <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item {{if eq .Active "/settings"}}active{{end}}">
<a class="nav-link" href="/settings">Settings</a>
</li>
<li class="nav-item {{if eq .Active "/profile"}}active{{end}}">
<a class="nav-link" href="/profile">Profile</a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<nav class="col-md-2 d-none d-md-block bg-light sidebar">
<div class="sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item {{if eq .Active "/"}}active{{end}}">
<a class="nav-link" href="/">
<span data-feather="home"></span>
Dashboard
</a>
</li>
<li class="nav-item {{if eq .Active "/orders"}}active{{end}}">
<a class="nav-link" href="/orders">
<span data-feather="file"></span>
Orders
</a>
</li>
<li class="nav-item {{if eq .Active "/products"}}active{{end}}">
<a class="nav-link" href="/products">
<span data-feather="shopping-cart"></span>
Products
</a>
</li>
<li class="nav-item {{if eq .Active "/customers"}}active{{end}}">
<a class="nav-link" href="/customers">
<span data-feather="users"></span>
Customers
</a>
</li>
</ul>
</div>
</nav>
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
{{template "content" .}}
</main>
</div>
</div>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/feather-icons.js"></script>
<script>
feather.replace()
</script>
</body>
</html>