This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
421809b
commit 39d2e13
Showing
7 changed files
with
69 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,56 @@ | ||
<header class="gh-publishmenu-heading">Will be published in {{timeToPublished}}</header> | ||
<section class="gh-publishmenu-content"> | ||
<div class="gh-publishmenu-radio {{if (eq saveType "draft") "active"}}" {{action "setSaveType" "draft" on="click"}}> | ||
<div class="gh-publishmenu-radio-button" data-test-publishmenu-draft-option></div> | ||
<div class="gh-publishmenu-radio-content"> | ||
<div class="gh-publishmenu-radio-label">Revert to draft</div> | ||
<div class="gh-publishmenu-radio-desc">Do not publish</div> | ||
<div class="gh-publishmenu-content"> | ||
<section class="gh-publishmenu-section"> | ||
<div class="gh-publishmenu-radio {{if (eq saveType "draft") "active"}}" {{action "setSaveType" "draft" on="click"}}> | ||
<div class="gh-publishmenu-radio-button" data-test-publishmenu-draft-option></div> | ||
<div class="gh-publishmenu-radio-content"> | ||
<div class="gh-publishmenu-radio-label">Revert to draft</div> | ||
<div class="gh-publishmenu-radio-desc">Do not publish</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="gh-publishmenu-radio {{if (eq saveType "schedule") "active"}}" {{action "setSaveType" "schedule" on="click"}}> | ||
<div class="gh-publishmenu-radio-button" data-test-publishmenu-scheduled-option></div> | ||
<div class="gh-publishmenu-radio-content"> | ||
<div class="gh-publishmenu-radio-label">Schedule for later</div> | ||
{{gh-date-time-picker | ||
date=post.publishedAtBlogDate | ||
time=post.publishedAtBlogTime | ||
setDate=(action "setDate") | ||
setTime=(action "setTime") | ||
errors=post.errors | ||
dateErrorProperty="publishedAtBlogDate" | ||
timeErrorProperty="publishedAtBlogTime" | ||
minDate=_minDate | ||
}} | ||
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div> | ||
<div class="gh-publishmenu-radio {{if (eq saveType "schedule") "active"}}" {{action "setSaveType" "schedule" on="click"}}> | ||
<div class="gh-publishmenu-radio-button" data-test-publishmenu-scheduled-option></div> | ||
<div class="gh-publishmenu-radio-content"> | ||
<div class="gh-publishmenu-radio-label">Schedule for later</div> | ||
{{gh-date-time-picker | ||
date=post.publishedAtBlogDate | ||
time=post.publishedAtBlogTime | ||
setDate=(action "setDate") | ||
setTime=(action "setTime") | ||
errors=post.errors | ||
dateErrorProperty="publishedAtBlogDate" | ||
timeErrorProperty="publishedAtBlogTime" | ||
minDate=_minDate | ||
}} | ||
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</section> | ||
{{#if post.sendEmailWhenPublished}} | ||
<section class="gh-publishmenu-section"> | ||
<div class="gh-publishmenu-radio gh-publishmenu-email"> | ||
{{#if this.backgroundLoader.isRunning}} | ||
<div class="gh-loading-spinner" style="zoom: 50%"></div> | ||
{{else}} | ||
<div class="gh-publishmenu-email-label"> | ||
<label class="gh-publishmenu-radio-label pe-none midgrey" | ||
for="email-when-published-checkbox">Send by email</label> | ||
{{#if this.memberCount}} | ||
<div class="gh-publishmenu-radio-desc">Deliver post to members</div> | ||
{{else}} | ||
<div class="gh-publishmenu-radio-desc">You haven't got any members</div> | ||
{{/if}} | ||
</div> | ||
<div class="for-switch small pe-none"> | ||
<div class="switch container" for="email-when-published-checkbox"> | ||
<Input @checked={{post.sendEmailWhenPublished}} @type="checkbox" @id="email-when-published-checkbox" | ||
@name="email-when-published" @disabled={{disableEmailOption}} /> | ||
<span class="input-toggle-component gh-publishmenu-email-checkbox" | ||
{{on "click" (toggle "sendEmailWhenPublished" this)}}></span> | ||
</div> | ||
</div> | ||
{{/if}} | ||
</div> | ||
</section> | ||
{{/if}} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters