mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add helper text to help admins create new templates (#3364)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user