When there are no templates
The built-in templates (Blank, Starter app) are always listed. When no repository the viewer can read is marked as a template, /templates says what to do next, in a plain line under the list.
- Admin: "Mark a repository as a template", a link to
/repos; the flag is in a repository's settings, App card. - Everyone else: "No templates yet", with no link and no error text.
- Filter: the line is not shown while
?q=is set; "No template matches that name." answers that. - Terminal:
/templatesprints the same words (TEMPLATES_EMPTY,TEMPLATES_EMPTY_ADMIN,src/spawn/template_list.ts). - Code:
src/web/pages/templates.ts,src/tui/screens/templates.ts. Tests:test/templates-empty.test.ts,test/templates-tui.test.ts.