Skip to content

Commit 7e1caa7

Browse files
authored
chore: add helper text to help admins create new templates (coder#3364)
1 parent 69664ed commit 7e1caa7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

site/src/pages/TemplatesPage/TemplatesPageView.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,23 @@ 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+
<PageHeaderSubtitle>
95+
Choose a template to create a new workspace
96+
{props.canCreateTemplate ? (
97+
<>
98+
, or{" "}
99+
<Link
100+
href="https://coder.com/docs/coder-oss/latest/templates#add-a-template"
101+
target="_blank"
102+
>
103+
manage templates
104+
</Link>{" "}
105+
from the CLI.
106+
</>
107+
) : (
108+
"."
109+
)}
110+
</PageHeaderSubtitle>
95111
)}
96112
</PageHeader>
97113

0 commit comments

Comments
 (0)