mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
Fixed post/page labels in feature image and save components (#1143)
closes https://github.com/TryGhost/Ghost/issues/10658 - update publish menu states to use `{{post.displayName}}` instead of hard coded `post` - update settings menu image uploader to generate CTA using `post.displayName`
This commit is contained in:
parent
bd90585956
commit
c19332f093
@ -10,7 +10,7 @@
|
||||
<div class="settings-menu-content">
|
||||
{{gh-image-uploader-with-preview
|
||||
image=post.featureImage
|
||||
text="Upload post image"
|
||||
text=(concat "Upload " post.displayName " image")
|
||||
allowUnsplash=true
|
||||
update=(action "setCoverImage")
|
||||
remove=(action "clearCoverImage")
|
||||
|
@ -1,10 +1,10 @@
|
||||
<header class="gh-publishmenu-heading">Ready to publish your post?</header>
|
||||
<header class="gh-publishmenu-heading">Ready to publish your {{post.displayName}}?</header>
|
||||
<section class="gh-publishmenu-content">
|
||||
<div class="gh-publishmenu-radio {{if (eq saveType "publish") "active"}}" {{action "setSaveType" "publish" on="click"}}>
|
||||
<div class="gh-publishmenu-radio-button" data-test-publishmenu-published-option></div>
|
||||
<div class="gh-publishmenu-radio-content">
|
||||
<div class="gh-publishmenu-radio-label">Set it live now</div>
|
||||
<div class="gh-publishmenu-radio-desc">Publish this post immediately</div>
|
||||
<div class="gh-publishmenu-radio-desc">Publish this {{post.displayName}} immediately</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-publishmenu-radio {{if (eq saveType "schedule") "active"}}" {{action "setSaveType" "schedule" on="click"}}>
|
||||
|
@ -1,17 +1,17 @@
|
||||
<header class="gh-publishmenu-heading">Update post status</header>
|
||||
<header class="gh-publishmenu-heading">Update {{post.displayName}} status</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-unpublished-option></div>
|
||||
<div class="gh-publishmenu-radio-content">
|
||||
<div class="gh-publishmenu-radio-label">Unpublished</div>
|
||||
<div class="gh-publishmenu-radio-desc">Revert this post to a private draft</div>
|
||||
<div class="gh-publishmenu-radio-desc">Revert this {{post.displayName}} to a private draft</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-publishmenu-radio {{if (eq saveType "publish") "active"}}" {{action setSaveType "publish" on="click"}}>
|
||||
<div class="gh-publishmenu-radio-button" data-test-publishmenu-published-option></div>
|
||||
<div class="gh-publishmenu-radio-content">
|
||||
<div class="gh-publishmenu-radio-label">Published</div>
|
||||
<div class="gh-publishmenu-radio-desc">Display this post publicly</div>
|
||||
<div class="gh-publishmenu-radio-desc">Display this {{post.displayName}} publicly</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -6,6 +6,7 @@
|
||||
{{#dd.content class="gh-publishmenu-dropdown"}}
|
||||
{{#if (eq displayState "published")}}
|
||||
{{gh-publishmenu-published
|
||||
post=post
|
||||
saveType=saveType
|
||||
setSaveType=(action "setSaveType")}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user