Files
supermarket/internal/web/templates/content-published.html
T
davidandClaude Opus 5.5 bb4772637c Phase 10, part 7: posting accounts, and who may post to which
Social accounts become posting accounts: several per network, the
company's and each person's own, with their tokens kept per account. The
old sign-ins are adopted as the company's. Admins say who may post to which
(Settings → Posting accounts); a draft can go out from one account or a
copy to several, each recording who posted it and as what. Signing an
account out, or removing its owner, holds the posts scheduled to it and
tells whoever scheduled them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 09:26:34 -07:00

23 lines
888 B
HTML

{{define "content"}}{{with .Data}}
<h1>Published</h1>
<p class="lede">The last 200 posts Supermarket published.</p>
{{if .Drafts}}
<table class="list">
<thead><tr><th>When</th><th>Channel</th><th>Entry</th><th>Post</th></tr></thead>
<tbody>
{{range .Drafts}}
<tr>
<td>{{.PublishedAt.Local.Format "2 Jan 2006 15:04"}}</td>
<td>{{.Where}}{{with .PostedAs}}<br><span class="muted small">as {{.}}</span>{{end}}</td>
<td>{{.InventoryName}}</td>
<td class="post-text">{{if .PostURL}}<a href="{{.PostURL}}" target="_blank" rel="noopener noreferrer">{{if .Title}}<strong>{{.Title}}</strong> {{end}}{{truncate 200 .Content}}</a>{{else}}{{if .Title}}<strong>{{.Title}}</strong> {{end}}{{truncate 200 .Content}}{{end}}</td>
</tr>
{{end}}
</tbody>
</table>
{{else}}
<section class="card empty"><p>Nothing published yet.</p></section>
{{end}}
{{end}}{{end}}