- 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>
40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
{{define "content"}}{{with .Data}}
|
|
<h1>Overview</h1>
|
|
|
|
<section class="card">
|
|
<h2>Setup</h2>
|
|
<ul class="steps">
|
|
{{range .Steps}}
|
|
<li class="{{if .Done}}done{{else}}todo{{end}}">
|
|
<a href="{{.Link}}"><strong>{{.Label}}</strong></a>
|
|
<span>{{.Detail}}</span>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
</section>
|
|
|
|
{{if .ImportErr}}
|
|
<section class="card warn">
|
|
<h2>Import from the old app failed</h2>
|
|
<p>{{.ImportErr}}</p>
|
|
<p>The old files are untouched in the data folder's <code>import/</code> directory. Fix the file named above and restart Supermarket (<code>supermarket restart</code>) to try again.</p>
|
|
</section>
|
|
{{else if .ImportStatus}}
|
|
<details class="card">
|
|
<summary>Imported from the old terminal app {{ago .ImportStatus.At}}</summary>
|
|
<ul>{{range .ImportStatus.Summary}}<li>{{.}}</li>{{end}}</ul>
|
|
{{if .QueuedPosts}}<p>Its queued posts are now drafts: <a href="/inbox">{{.QueuedPosts}} waiting in the Inbox</a>.</p>{{end}}
|
|
</details>
|
|
{{end}}
|
|
|
|
<h2>Modules</h2>
|
|
<div class="grid">
|
|
{{range .Modules}}
|
|
<section class="card module">
|
|
<h3>{{if .Link}}<a href="{{.Link}}">{{.Name}}</a>{{else}}{{.Name}}{{end}} <span class="badge">{{.Phase}}</span></h3>
|
|
<p>{{.Body}}</p>
|
|
</section>
|
|
{{end}}
|
|
</div>
|
|
{{end}}{{end}}
|