mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
🎨 Improved copy on page & post revisions (#17068)
no issue Updates the labels of the post history components to reflect the type of content (post or page). It modifies the `restore-revision`, `gh-post-settings-menu`, and `modal-post-history` components.
This commit is contained in:
parent
7f3cd9c674
commit
bd348dc297
3 changed files with 7 additions and 7 deletions
|
@ -152,7 +152,7 @@
|
||||||
{{#if this.canViewPostHistory}}
|
{{#if this.canViewPostHistory}}
|
||||||
<li class="nav-list-item">
|
<li class="nav-list-item">
|
||||||
<button type="button" {{on "click" this.openPostHistory}} data-test-toggle="post-history">
|
<button type="button" {{on "click" this.openPostHistory}} data-test-toggle="post-history">
|
||||||
<span>{{svg-jar "history" class="history"}} Post history</span>
|
<span>{{svg-jar "history" class="history"}} {{capitalize this.post.displayName}} history</span>
|
||||||
</button>
|
</button>
|
||||||
{{svg-jar "arrow-right" class="arrow-right"}}
|
{{svg-jar "arrow-right" class="arrow-right"}}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
{{svg-jar "arrow-left"}}
|
{{svg-jar "arrow-left"}}
|
||||||
<span class="hidden">Back</span>
|
<span class="hidden">Back</span>
|
||||||
</button>
|
</button>
|
||||||
<h4>Post history</h4>
|
<h4>{{capitalize this.post.displayName}} history</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-menu-content">
|
<div class="settings-menu-content">
|
||||||
<ul class="nav-list">
|
<ul class="nav-list">
|
||||||
|
|
|
@ -8,17 +8,17 @@ export default class RestoreRevisionModal extends Component {
|
||||||
|
|
||||||
get title() {
|
get title() {
|
||||||
return this.args.data.post.isPublished === true
|
return this.args.data.post.isPublished === true
|
||||||
? 'Restore version for published post?'
|
? `Restore version for published ${this.args.data.post.displayName}?`
|
||||||
: 'Restore this version?';
|
: `Restore this version?`;
|
||||||
}
|
}
|
||||||
|
|
||||||
get body() {
|
get body() {
|
||||||
return this.args.data.post.isPublished === true
|
return this.args.data.post.isPublished === true
|
||||||
? htmlSafe(`
|
? htmlSafe(`
|
||||||
Heads up! This post has already been <strong>published</strong>, restoring a previous
|
Heads up! This ${this.args.data.post.displayName} has already been <strong>published</strong>, restoring a previous
|
||||||
version will automatically update the post on your site.
|
version will automatically update the ${this.args.data.post.displayName} on your site.
|
||||||
`)
|
`)
|
||||||
: 'Replace your existing draft with this version of the post.';
|
: `Replace your existing draft with this version of the ${this.args.data.post.displayName}.`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@task
|
@task
|
||||||
|
|
Loading…
Add table
Reference in a new issue