We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f33878 commit 5b05b4bCopy full SHA for 5b05b4b
site/src/pages/TemplatesPage/TemplatesPageView.tsx
@@ -91,7 +91,25 @@ export const TemplatesPageView: FC<TemplatesPageViewProps> = (props) => {
91
</Stack>
92
</PageHeaderTitle>
93
{props.templates && props.templates.length > 0 && (
94
- <PageHeaderSubtitle>Choose a template to create a new workspace.</PageHeaderSubtitle>
+ <>
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
113
)}
114
</PageHeader>
115
0 commit comments