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>
41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
{{define "content"}}{{with .Data}}
|
|
<div class="heading">
|
|
<h1>Market</h1>
|
|
<div class="buttons">
|
|
<a class="button" href="/market/new">New entry</a>
|
|
<a class="button secondary" href="/market/import">Import</a>
|
|
<a class="button secondary" href="/market/export">Export</a>
|
|
</div>
|
|
</div>
|
|
<p class="lede"><strong>Partners</strong>: Supermarket amplifies their news.
|
|
<strong>Competitors</strong>: it positions your products against theirs.
|
|
<strong>Watch</strong>: news to curate, no promotion either way.</p>
|
|
|
|
<nav class="tabs">
|
|
<a href="/market" {{if eq .Relationship ""}}aria-current="page"{{end}}>All</a>
|
|
{{$cur := .Relationship}}
|
|
{{range .Relationships}}<a href="/market?relationship={{.}}" {{if eq $cur .}}aria-current="page"{{end}}>{{.}}</a>{{end}}
|
|
</nav>
|
|
|
|
{{if .Entries}}
|
|
<table class="list">
|
|
<thead><tr><th>Name</th><th>Relationship</th><th>X</th><th>YouTube</th><th>Description</th></tr></thead>
|
|
<tbody>
|
|
{{range .Entries}}
|
|
<tr>
|
|
<td><a href="/market/{{.ID}}">{{.Name}}</a></td>
|
|
<td><span class="badge {{.Relationship}}">{{.Relationship}}</span></td>
|
|
<td>{{if .TwitterHandle}}@{{.TwitterHandle}}{{end}}</td>
|
|
<td>{{if .YouTubeChannelID}}✓{{end}}</td>
|
|
<td>{{truncate 90 .Description}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
<section class="card empty">
|
|
<p>Nothing here yet. Add the partners and competitors you post about, or <a href="/market/import">import a list</a>.</p>
|
|
</section>
|
|
{{end}}
|
|
{{end}}{{end}}
|