From 7e1caa70867879b10bb9cf3ea2b19a5971bb1d3d Mon Sep 17 00:00:00 2001 From: Ben Potter Date: Wed, 3 Aug 2022 12:27:39 -0500 Subject: [PATCH] chore: add helper text to help admins create new templates (#3364) --- .../pages/TemplatesPage/TemplatesPageView.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/site/src/pages/TemplatesPage/TemplatesPageView.tsx b/site/src/pages/TemplatesPage/TemplatesPageView.tsx index 5ef1424eb0..948b511dfb 100644 --- a/site/src/pages/TemplatesPage/TemplatesPageView.tsx +++ b/site/src/pages/TemplatesPage/TemplatesPageView.tsx @@ -91,7 +91,23 @@ export const TemplatesPageView: FC = (props) => { {props.templates && props.templates.length > 0 && ( - Choose a template to create a new workspace. + + Choose a template to create a new workspace + {props.canCreateTemplate ? ( + <> + , or{" "} + + manage templates + {" "} + from the CLI. + + ) : ( + "." + )} + )}