Skip to content
This repository was archived by the owner on Jul 31, 2019. It is now read-only.
Closed
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
1 change: 1 addition & 0 deletions locales/en-US/server.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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 <strong>"index.html"</strong> file before publishing your project. <a href="{{ learnMoreURL }}">Learn more</a>

##################
Expand Down
11 changes: 10 additions & 1 deletion public/editor/scripts/editor/js/fc/publisher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");

}
};

Expand Down
3 changes: 2 additions & 1 deletion views/editor/publish.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<div id="publish-dialog" class="hide">
<div class="content">

<h1>{{ gettext("publishHeader") }}</h1>
<h1 id="publish-title">{{ gettext("publishHeader") }}</h1>
<h1 id="published-title" class="hide">{{ gettext("projectLive") }}</h1>

<div id="publish-changes" class="hide">
<p>{{ gettext("publishChangesPrompt") }}</p>
Expand Down