Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions frontend/src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"tutorial_other": "Take a tour",
"docs": "Docs",
"discord": "Discord",
"danger_zone": "Danger Zone",
"danger_zone": "Danger zone",
"control_plane": "Control plane",
"refresh": "Refresh",
"quickstart": "Quickstart",
Expand Down Expand Up @@ -223,10 +223,26 @@
"members_empty_message_text": "Select project's members",
"update_members_success": "Members are updated",
"update_visibility_success": "Project visibility updated successfully",
"update_visibility_confirm_title": "Change project visibility",
"update_templates_repo_success": "Templates updated successfully",
"update_visibility_confirm_title": "Change visibility",
"update_visibility_confirm_message": "Are you sure you want to change the project visibility? This will affect who can access this project.",
"change_visibility": "Change",
"project_visibility": "Visibility",
"project_visibility_settings": "Visibility",
"templates_repo": "Templates",
"override_project_templates": "Templates",
"transfer_ownership": "Ownership",
"templates_repo_description": "Set a project-level templates repository URL",
"templates_repo_placeholder": "https://github.com/org/templates.git",
"templates_repo_not_set": "not set",
"templates_repo_required": "Templates repo URL cannot be empty",
"save_templates_repo": "Save",
"configure_templates_repo": "Configure",
"change_templates_repo_title": "Override project templates",
"change_templates_repo_message": "Specify a new templates Git repo URL:",
"reset_templates_repo": "Reset",
"reset_templates_repo_title": "Reset templates",
"reset_templates_repo_message": "Are you sure you want to reset templates for this project?",
"project_visibility_description": "Control who can access this project",
"make_project_public": "Make project public",
"delete_project_confirm_title": "Delete project",
Expand Down Expand Up @@ -472,6 +488,11 @@
},
"runs": {
"launch_button": "Launch",
"no_templates_alert": {
"title": "No templates configured",
"description": "The selected project has no templates available for Launch.",
"action": "Settings"
},
"launch": {
"wizard": {
"title": "Launch",
Expand Down
21 changes: 21 additions & 0 deletions frontend/src/pages/Project/Details/Settings/constants.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import Link from '@cloudscape-design/components/link';

export const CLI_INFO = {
header: <h2>CLI</h2>,
Expand All @@ -21,3 +22,23 @@ export const CLI_INFO = {
</>
),
};

export const TEMPLATES_REPO_INFO = {
header: <h2>Templates</h2>,
body: (
<>
<p>
Specify a project-level templates Git repository URL. Templates from this repo are shown on the Launch page in
Runs, and setting it enables the Launch button when templates are available.
</p>
<p>If set, project templates override global templates configured on the server.</p>
<p>
See official examples in{' '}
<Link href="https://github.com/dstackai/dstack-templates" external>
dstackai/dstack-templates
</Link>
.
</p>
</>
),
};
Loading