= {
id: data.id,
name: data.name,
- url_prefix: data.url_prefix,
+ url_template: data.url_template,
};
if (map_language_to_playground_info.has(data.pygments_language)) {
map_language_to_playground_info.get(data.pygments_language)!.push(element_to_push);
diff --git a/web/src/settings_playgrounds.js b/web/src/settings_playgrounds.js
index 10f9847d36..d3687960ab 100644
--- a/web/src/settings_playgrounds.js
+++ b/web/src/settings_playgrounds.js
@@ -41,7 +41,7 @@ export function populate_playgrounds(playgrounds_data) {
playground: {
playground_name: playground.name,
pygments_language: playground.pygments_language,
- url_prefix: playground.url_prefix,
+ url_template: playground.url_template,
id: playground.id,
},
can_modify: page_params.is_admin,
@@ -65,7 +65,7 @@ export function populate_playgrounds(playgrounds_data) {
...ListWidget.generic_sort_functions("alphabetic", [
"pygments_language",
"name",
- "url_prefix",
+ "url_template",
]),
},
$simplebar_container: $("#playground-settings .progressive-table-wrapper"),
@@ -110,7 +110,7 @@ function build_page() {
const data = {
name: $("#playground_name").val(),
pygments_language: $("#playground_pygments_language").val(),
- url_prefix: $("#playground_url_prefix").val(),
+ url_template: $("#playground_url_template").val(),
};
channel.post({
url: "/json/realm/playgrounds",
@@ -118,7 +118,7 @@ function build_page() {
success() {
$("#playground_pygments_language").val("");
$("#playground_name").val("");
- $("#playground_url_prefix").val("");
+ $("#playground_url_template").val("");
$add_playground_button.prop("disabled", false);
ui_report.success(
$t_html({defaultMessage: "Custom playground added!"}),
diff --git a/web/styles/settings.css b/web/styles/settings.css
index e1a79e6ce4..2f4b034b7c 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -250,7 +250,7 @@ h3,
#playground-settings {
#playground_pygments_language,
#playground_name,
- #playground_url_prefix {
+ #playground_url_template {
width: calc(100% - 10em - 6em);
}
}
diff --git a/web/templates/settings/admin_playground_list.hbs b/web/templates/settings/admin_playground_list.hbs
index 72f34a8173..2e785141ef 100644
--- a/web/templates/settings/admin_playground_list.hbs
+++ b/web/templates/settings/admin_playground_list.hbs
@@ -7,7 +7,7 @@
{{playground_name}}
- {{url_prefix}}
+ {{url_template}}
|
{{#if ../can_modify}}
diff --git a/web/templates/settings/playground_settings_admin.hbs b/web/templates/settings/playground_settings_admin.hbs
index 838d64e735..a303cfac72 100644
--- a/web/templates/settings/playground_settings_admin.hbs
+++ b/web/templates/settings/playground_settings_admin.hbs
@@ -23,7 +23,7 @@
{{t "Name" }}: Python3 playground
- {{t "URL prefix" }}: https://replit.com/languages/python3/?code=
+ {{t "URL template" }}: https://replit.com/languages/python3/?code={code}
@@ -52,8 +52,8 @@
-
-
+
+
|