89 lines
2.3 KiB
Cheetah
89 lines
2.3 KiB
Cheetah
<!DOCTYPE html>
|
|
<html class="min-h-full flex flex-col items-stretch">
|
|
<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 class="basis-full grow bg-background flex flex-col items-stretch">
|
|
<header>
|
|
<nav class="flex flex-col items-center text-xl overflow-x-scroll overflow-y-hidden ">
|
|
<ul class="flex text-nowrap overflow-x-scroll overflow-y-hidden">
|
|
<li class="pt-[1em] pb-[1em]">
|
|
<a href="/" class="p-[1em] font-bold">
|
|
Home
|
|
</a>
|
|
</li>
|
|
|
|
{{/* */}}
|
|
{{- $userID := .Identity.User.UserID }}
|
|
{{- $acct := .Identity.Account }}
|
|
{{- $acctID := 0 }}
|
|
{{- if $acct }}
|
|
{{- $acctID = $acct.ID }}
|
|
{{- end }}
|
|
|
|
{{- if not $userID }}
|
|
|
|
<li class="pt-[1em] pb-[1em]">
|
|
<a href="/login" class="p-[1em] font-bold">
|
|
Log In / Sign Up
|
|
</a>
|
|
</li>
|
|
|
|
{{- else if $acctID }}
|
|
|
|
<li class="pt-[1em] pb-[1em]">
|
|
<a href="/accounts/{{$acctID}}" class="p-[1em] font-bold">
|
|
Account
|
|
</a>
|
|
</li>
|
|
|
|
<li class="pt-[1em] pb-[1em]">
|
|
<a href="/accounts/{{$acctID}}/reports" class="p-[1em] font-bold">
|
|
Reports
|
|
</a>
|
|
</li>
|
|
|
|
<li class="pt-[1em] pb-[1em]">
|
|
<a href="/accounts/{{$acctID}}/inventory" class="p-[1em] font-bold">
|
|
Inventory
|
|
</a>
|
|
</li>
|
|
|
|
<li class="pt-[1em] pb-[1em]">
|
|
<a href="/logout" class="p-[1em] font-bold">
|
|
Log Out
|
|
</a>
|
|
</li>
|
|
|
|
{{- end }}
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="basis-full grow p-[1em]">
|
|
{{/* This is where the page_body template will be inserted into the page */}}
|
|
{{- block "body" . }}{{ end }}
|
|
</main>
|
|
|
|
<footer class="flex flex-col items-center">
|
|
<address class="flex items-center">
|
|
<a href="mailto:contact-us@inventory-plus-plus.com" class="p-[1em] font-bold">Contact Us</a>
|
|
<a href="mailto:support@inventory-plus-plus.com" class="p-[1em] font-bold">Support</a>
|
|
</address>
|
|
</footer>
|
|
</body>
|
|
</html>
|