0
Fork 0
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:
Ronald Langeveld 2023-06-20 14:52:51 +02:00 committed by GitHub
parent 7f3cd9c674
commit bd348dc297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -152,7 +152,7 @@
{{#if this.canViewPostHistory}}
<li class="nav-list-item">
<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>
{{svg-jar "arrow-right" class="arrow-right"}}
</li>

View file

@ -34,7 +34,7 @@
{{svg-jar "arrow-left"}}
<span class="hidden">Back</span>
</button>
<h4>Post history</h4>
<h4>{{capitalize this.post.displayName}} history</h4>
</div>
<div class="settings-menu-content">
<ul class="nav-list">

View file

@ -8,17 +8,17 @@ export default class RestoreRevisionModal extends Component {
get title() {
return this.args.data.post.isPublished === true
? 'Restore version for published post?'
: 'Restore this version?';
? `Restore version for published ${this.args.data.post.displayName}?`
: `Restore this version?`;
}
get body() {
return this.args.data.post.isPublished === true
? htmlSafe(`
Heads up! This post has already been <strong>published</strong>, restoring a previous
version will automatically update the post on your site.
Heads up! This ${this.args.data.post.displayName} has already been <strong>published</strong>, restoring a previous
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