Skip to content

Commit 5b05b4b

Browse files
committed
chore: add helper text to help admins create new templates
1 parent 8f33878 commit 5b05b4b

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

site/src/pages/TemplatesPage/TemplatesPageView.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,25 @@ export const TemplatesPageView: FC<TemplatesPageViewProps> = (props) => {
9191
</Stack>
9292
</PageHeaderTitle>
9393
{props.templates && props.templates.length > 0 && (
94-
<PageHeaderSubtitle>Choose a template to create a new workspace.</PageHeaderSubtitle>
94+
<>
95+
<PageHeaderSubtitle>
96+
Choose a template to create a new workspace
97+
{props.canCreateTemplate ? (
98+
<>
99+
, or{" "}
100+
<Link
101+
href="https://coder.com/docs/coder-oss/latest/templates#add-a-template"
102+
target="_blank"
103+
>
104+
create a new template
105+
</Link>{" "}
106+
from the CLI.
107+
</>
108+
) : (
109+
"."
110+
)}
111+
</PageHeaderSubtitle>
112+
</>
95113
)}
96114
</PageHeader>
97115

0 commit comments

Comments
 (0)