Files
supermarket/internal/web/templates/content.html
T
davidandClaude Opus 5.5 a81ced3503 Inventory is now the Market
Everything the user sees says Market: the sidebar, titles, breadcrumbs,
help text, messages, suggestions and the agent tool's description; the
export downloads as supermarket-market.yaml. Its pages live under
/market, and the old /inventory addresses redirect there (308, so a
form's POST stays a POST). The YAML format (inventory:), the database
and the code's names are unchanged, so exported files still import. A
breadcrumb no longer repeats the page's own title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:38:50 -07:00

32 lines
1.4 KiB
HTML

{{define "content"}}{{with .Data}}
<h1>Sources</h1>
<p class="lede">Pick a Market entry to fetch its latest news, choose what to write about, and get a draft for each channel to review under <a href="/posts">Posts</a>.</p>
{{if .Rows}}
<table class="list">
<thead><tr><th>Entry</th><th>Relationship</th><th>Sources</th><th>Waiting</th><th>Last fetched</th></tr></thead>
<tbody>
{{range .Rows}}
<tr>
{{if .Own}}
<td><a href="/content/own">{{.Name}}</a> <span class="muted small">your own work</span></td>
<td><span class="badge product">product</span></td>
<td>{{if .Sources}}{{join .Sources ", "}}{{else}}<span class="muted">none: add products, websites or feeds to your <a href="/settings/profile">profile</a></span>{{end}}</td>
{{else}}
<td><a href="/content/{{.Entry.ID}}">{{.Name}}</a></td>
<td><span class="badge {{.Entry.Relationship}}">{{.Entry.Relationship}}</span></td>
<td>{{if .Sources}}{{join .Sources ", "}}{{else}}<span class="muted">none: <a href="/market/{{.Entry.ID}}">add some</a></span>{{end}}</td>
{{end}}
<td>{{if .Waiting}}{{.Waiting}}{{end}}</td>
<td>{{ago .LastChecked}}</td>
</tr>
{{end}}
</tbody>
</table>
{{else}}
<section class="card empty">
<p>Add the partners and competitors you post about to the <a href="/market">Market</a> first.</p>
</section>
{{end}}
{{end}}{{end}}