Files
supermarket/internal/web/templates/team-closed.html
T
davidandClaude Opus 5.5 b8a64e258a Phase 13, part 8: a team's data is theirs
The owner exports everything from Settings → Your data (the keys only with
their password), and can delete the team: it closes at once, everyone in it
is told, it can be undone for 30 days, and then its schema, files, agents
and memberships go for good.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:40:28 -07:00

10 lines
774 B
HTML

{{define "content"}}{{with .Data}}
<h1>{{.Name}} is {{.Status}}</h1>
<section class="card">
{{if eq .Status "suspended"}}<p>The people running Supermarket have suspended this team. Its data is kept, and its work waits. Ask them why, or for it to be restored.</p>
{{else}}<p>This team is being deleted. Its owner can still undo it, until {{.DeleteAt.Local.Format "2 Jan 2006"}}.</p>
{{with $.Viewer}}{{if eq (print .Member.Role) "owner"}}<form method="post" action="/teams/undelete"><button type="submit">Undo: keep the team</button></form>{{end}}{{end}}{{end}}
<p><a href="/settings/account">Your account</a> · <form class="inline" method="post" action="/signout"><button type="submit" class="secondary small">Sign out</button></form></p>
</section>
{{end}}{{end}}