Files
inventory-plus-plus/internal/site/templates/layout.html.tmpl
T
2025-12-30 11:37:29 -07:00

110 lines
2.0 KiB
Cheetah

<!DOCTYPE html>
<html>
<head>
<title>
{{ block "title" . }} Inventory++ {{ end }}
</title>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<link rel="stylesheet" href="/styles/index.css">
<script src="/scripts/htmx.min.js.gz"></script>
<script src="/scripts/_hyperscript.min.js.gz"></script>
{{/* This is where the page_head template will be inserted into the page */}}
{{- block "head" . }}{{ end }}
</head>
<body style="margin: 0; padding: 0;">
<header style="margin: 0; padding: 0;">
<nav
style="
margin: 0;
padding: 1em;
background-color: #bdf;
font-size: 1.25em;
display: flex;
flex-direction: column;
align-items: center;
"
>
<ul>
<li>
<a href="/">
Home
</a>
</li>
{{- if .UserID }}
<li>
<a href="/accounts/{{.Account.ID}}">
Account
</a>
</li>
<li>
<a href="/accounts/{{.Account.ID}}/reports">
Reports
</a>
</li>
<li>
<a href="/accounts/{{.Account.ID}}/inventory">
Inventory
</a>
</li>
<li>
<a href="/logout">
Log Out
</a>
</li>
{{- else }}
<li>
<a href="/login">
Log In / Sign Up
</a>
</li>
{{- end }}
</ul>
</nav>
</header>
<main style="margin: 0; padding: 1em;">
{{/* This is where the page_body template will be inserted into the page */}}
{{- block "body" . }}{{ end }}
</main>
<footer
style="
margin: 0;
padding: 2em;
background-color: #bdf;
display: flex;
flex-direction: column;
align-items: center;
"
>
<address
style="
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5em;
"
>
<a href="mailto:contact-us@inventory-plus-plus.com">Contact Us</a>
<a href="mailto:support@inventory-plus-plus.com">Support</a>
</address>
</footer>
</body>
</html>