- Removed Node.js build artifacts from .gitignore and adjusted Makefile to reflect changes in web UI build process, now using server-rendered Go templates instead of React. - Updated README to clarify the new web UI architecture and output formats, emphasizing the removal of the Node.js build step. - Added a command to set the number of frames per render task in manager configuration, enhancing user control over rendering settings. - Improved Gitea workflow by removing unnecessary npm install step, streamlining the CI process.
49 lines
1.7 KiB
HTML
49 lines
1.7 KiB
HTML
{{ define "base" }}
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{ .Title }} - JiggaBlend</title>
|
|
<link rel="stylesheet" href="/assets/style.css">
|
|
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
|
|
</head>
|
|
<body>
|
|
{{ if .User }}
|
|
<header class="topbar">
|
|
<div class="brand">JiggaBlend</div>
|
|
<nav class="nav">
|
|
<a href="/jobs" class="{{ if eq .CurrentPath "/jobs" }}active{{ end }}">Jobs</a>
|
|
<a href="/jobs/new" class="{{ if eq .CurrentPath "/jobs/new" }}active{{ end }}">Submit</a>
|
|
{{ if .User.IsAdmin }}<a href="/admin" class="{{ if eq .CurrentPath "/admin" }}active{{ end }}">Admin</a>{{ end }}
|
|
</nav>
|
|
<div class="account">
|
|
<span>{{ .User.Name }}</span>
|
|
<form method="post" action="/logout">
|
|
<button type="submit" class="btn subtle">Logout</button>
|
|
</form>
|
|
</div>
|
|
</header>
|
|
{{ end }}
|
|
|
|
<main class="container">
|
|
{{ if .Error }}<div class="alert error">{{ .Error }}</div>{{ end }}
|
|
{{ if .Notice }}<div class="alert notice">{{ .Notice }}</div>{{ end }}
|
|
{{ if eq .ContentTemplate "page_login" }}
|
|
{{ template "page_login" . }}
|
|
{{ else if eq .ContentTemplate "page_jobs" }}
|
|
{{ template "page_jobs" . }}
|
|
{{ else if eq .ContentTemplate "page_jobs_new" }}
|
|
{{ template "page_jobs_new" . }}
|
|
{{ else if eq .ContentTemplate "page_job_show" }}
|
|
{{ template "page_job_show" . }}
|
|
{{ else if eq .ContentTemplate "page_admin" }}
|
|
{{ template "page_admin" . }}
|
|
{{ end }}
|
|
</main>
|
|
|
|
{{ if .PageScript }}<script src="{{ .PageScript }}"></script>{{ end }}
|
|
</body>
|
|
</html>
|
|
{{ end }}
|