- Inbox: a top-level page, with a count in the menu, for everything waiting for approval; Content's drafts are reviewed there. /drafts redirects to it. - Scheduling: publish a draft now or at a time (migration 3 adds publish_at). A scheduler in the app publishes due drafts every 30 seconds. Posts more than 12 hours overdue, or refused before posting, go back to the Inbox with the reason. Content gets Scheduled and Published tabs. - UTM tags on links to the company's own websites and product pages, added when publishing; drafts stay untagged. - The container runs in the computer's time zone, so times are shown and read correctly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.4 KiB
HTML
33 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="htmx-config" content='{"includeIndicatorStyles": false}'>
|
|
<title>{{.Title}} · Supermarket</title>
|
|
<link rel="stylesheet" href="/static/app.css">
|
|
<script src="/static/htmx.min.js" defer></script>
|
|
<script src="/static/app.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<header class="topbar">
|
|
<a class="brand" href="/">Super<span>market</span></a>
|
|
<nav>
|
|
<a href="/" {{if eq .Nav "home"}}aria-current="page"{{end}}>Overview</a>
|
|
<a href="/profile" {{if eq .Nav "profile"}}aria-current="page"{{end}}>Profile</a>
|
|
<a href="/inbox" {{if eq .Nav "inbox"}}aria-current="page"{{end}}>Inbox{{if .Inbox}} <span class="count-badge">{{.Inbox}}</span>{{end}}</a>
|
|
<a href="/content" {{if eq .Nav "content"}}aria-current="page"{{end}}>Content</a>
|
|
<a href="/inventory" {{if eq .Nav "inventory"}}aria-current="page"{{end}}>Inventory</a>
|
|
<a href="/settings/ai" {{if eq .Nav "settings"}}aria-current="page"{{end}}>Settings</a>
|
|
<a href="/core" {{if eq .Nav "core"}}aria-current="page"{{end}}>Core & Hermes</a>
|
|
</nav>
|
|
</header>
|
|
<main>
|
|
{{if .Flash}}<p class="flash" role="status">{{.Flash}}</p>{{end}}
|
|
{{if .Error}}<p class="error" role="alert">{{.Error}}</p>{{end}}
|
|
{{template "content" .}}
|
|
</main>
|
|
<footer>Supermarket {{.Version}}</footer>
|
|
</body>
|
|
</html>
|