{{ gettext("publishHeader") }}
+{{ gettext("publishHeader") }}
+{{ gettext("projectLive") }}
{{ gettext("publishChangesPrompt") }}
diff --git a/locales/en-US/server.properties b/locales/en-US/server.properties index 417ce3289..23c69527d 100644 --- a/locales/en-US/server.properties +++ b/locales/en-US/server.properties @@ -217,6 +217,7 @@ publishShareLink=Here's a link you can share… publishChangesPrompt=You've made changes since you last published this project. publishProjectDescription=Project Description publishCancelBtn=Cancel +projectLive=Your Project is Online noIndexFound=Please add an "index.html" file before publishing your project. Learn more ################## diff --git a/public/editor/scripts/editor/js/fc/publisher.js b/public/editor/scripts/editor/js/fc/publisher.js index 8eca42ed9..07c53af62 100644 --- a/public/editor/scripts/editor/js/fc/publisher.js +++ b/public/editor/scripts/editor/js/fc/publisher.js @@ -37,7 +37,10 @@ define(function(require) { published: { link: $("#publish-link > a"), changed: $("#publish-changes"), - container: $("#publish-live") + container: $("#publish-live"), + publishTitle: $("#publish-title"), + publishedTitle: $("#published-title") + } }; this.dialogEl = $("#publish-dialog"); @@ -299,8 +302,14 @@ define(function(require) { .off("click", unpublish) .on("click", unpublish); published.container.removeClass("hide"); + published.publishTitle.addClass("hide"); + published.publishedTitle.removeClass("hide"); + } else { published.container.addClass("hide"); + published.publishTitle.removeClass("hide"); + published.publishedTitle.addClass("hide"); + } }; diff --git a/views/editor/publish.html b/views/editor/publish.html index 357d4d3a5..8e1b21deb 100644 --- a/views/editor/publish.html +++ b/views/editor/publish.html @@ -8,7 +8,8 @@
{{ gettext("publishChangesPrompt") }}