77 lines
3.2 KiB
HTML
77 lines
3.2 KiB
HTML
{{define "html-head"}}
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{if .PageTitle}}{{.PageTitle}} - Goondex{{else}}Goondex{{end}}</title>
|
|
|
|
<!-- Bootstrap (base layout) -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<!-- Goondex bespoke styles -->
|
|
{{if .Stylesheets}}
|
|
{{range .Stylesheets}}
|
|
<link rel="stylesheet" href="{{.}}">
|
|
{{end}}
|
|
{{else}}
|
|
<link rel="stylesheet" href="/static/css/goondex.css">
|
|
{{end}}
|
|
{{end}}
|
|
|
|
{{define "html-scripts"}}
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="/static/js/app.js"></script>
|
|
{{end}}
|
|
|
|
{{define "navbar"}}
|
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
|
<div class="container nav-inner">
|
|
<a class="navbar-brand d-flex align-items-center" href="/">
|
|
<img src="/static/img/logo/Goondex_LOGO.png" class="logo-img" alt="Goondex logo">
|
|
</a>
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNav"
|
|
aria-controls="mainNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse justify-content-end" id="mainNav">
|
|
<ul class="nav-links navbar-nav align-items-lg-center">
|
|
<li class="nav-item">
|
|
<a href="/" class="nav-link {{if eq .ActivePage "dashboard"}}active{{end}}">Dashboard</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/performers" class="nav-link {{if eq .ActivePage "performers"}}active{{end}}">Performers</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/studios" class="nav-link {{if eq .ActivePage "studios"}}active{{end}}">Studios</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/scenes" class="nav-link {{if eq .ActivePage "scenes"}}active{{end}}">Scenes</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/movies" class="nav-link {{if eq .ActivePage "movies"}}active{{end}}">Movies</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/settings" class="nav-link {{if eq .ActivePage "settings"}}active{{end}}">Settings</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div id="global-loader" class="global-loader" style="display:none;">
|
|
<div class="loader-content">
|
|
<div class="spinner"></div>
|
|
<div id="global-loader-text">Working...</div>
|
|
</div>
|
|
</div>
|
|
<div id="job-progress" class="job-progress" style="display:none;">
|
|
<div class="job-progress-header">
|
|
<span id="job-progress-label">Importing...</span>
|
|
<span id="job-progress-count"></span>
|
|
</div>
|
|
<div class="job-progress-bar">
|
|
<div class="job-progress-fill" id="job-progress-fill" style="width:0%"></div>
|
|
</div>
|
|
<div class="job-progress-message" id="job-progress-message"></div>
|
|
</div>
|
|
{{end}}
|