chore: add helper text to help admins create new templates (#3364)

This commit is contained in:
Ben Potter
2022-08-03 17:27:39 +00:00
committed by GitHub
parent 69664ed168
commit 7e1caa7086
@@ -91,7 +91,23 @@ export const TemplatesPageView: FC<TemplatesPageViewProps> = (props) => {
</Stack>
</PageHeaderTitle>
{props.templates && props.templates.length > 0 && (
<PageHeaderSubtitle>Choose a template to create a new workspace.</PageHeaderSubtitle>
<PageHeaderSubtitle>
Choose a template to create a new workspace
{props.canCreateTemplate ? (
<>
, or{" "}
<Link
href="https://coder.com/docs/coder-oss/latest/templates#add-a-template"
target="_blank"
>
manage templates
</Link>{" "}
from the CLI.
</>
) : (
"."
)}
</PageHeaderSubtitle>
)}
</PageHeader>