{{- $loggedIn := and (and .Identity .Identity.AccessToken) true -}} {{- $hasAccount := and (and .Identity .Identity.Account) true -}} {{- $acctID := 0 }} {{- if $hasAccount }} {{- $acctID = .Identity.Account.AccountID }} {{- end }} {{- $mockMode := .MockMode }} {{- $devAuthEnabled := .DevAuthEnabled }} {{ block "title" . }} Inventory++ {{ end }} {{/* This can be set by the template in ./pages being rendered */}} {{- block "head" . }}{{ end }}
{{- $path := or .Request.URL.Path "/" }} {{ define "navbar-class" }}class=" w-full text-xl overflow-x-hidden overflow-y-hidden flex justify-center {{ if .MockMode }} border-[2px] border-[gray] {{ end }} "{{ end }} {{ define "navbar-ul-class" }}class=" max-w-full overflow-x-auto overflow-y-hidden text-nowrap flex basis-[fit-content] "}} {{ end }} {{ define "navbar-link" }} {{/* Href, NoHXBoost, Selected, Content */}}
  • {{.Content}}
  • {{ end }} {{/* navbar updater */}} {{- if $hasAccount }} {{- end }} {{/* TODO: delete this AFTER we're sure we don't need this anymore */}} {{/*- if hasPrefix $path (printf "/accounts/%d/shops" $acctID) }} {{- end */}} {{/*- if hasPrefix $path (printf "/accounts/%d/inventory" $acctID) }} {{- end */}}
    {{/* This is where the page_body template will be inserted into the page */}} {{- block "body" . }}{{ end }}