mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Added post revision anonymous author label (#16697)
refs https://github.com/TryGhost/Team/issues/3104 When a post revision author has been deleted, or there is no author associated with a post revision, the label "Anonymous" is used for the revision author
This commit is contained in:
parent
a46d837fbd
commit
1538b18d4e
@ -53,7 +53,7 @@
|
||||
<span class="gh-post-history-version-tag published">Publised</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
<span class="gh-post-history-version-meta">{{revision.author.name}}</span>
|
||||
<span class="gh-post-history-version-meta {{if (eq revision.author.name "Anonymous") "anonymous-author"}}">{{revision.author.name}}</span>
|
||||
</button>
|
||||
{{#if (and revision.selected (not revision.latest))}}
|
||||
<button
|
||||
|
@ -61,7 +61,7 @@ export default class ModalPostHistory extends Component {
|
||||
title: revision.get('title'),
|
||||
feature_image: revision.get('featureImage'),
|
||||
author: {
|
||||
name: revision.get('author.name')
|
||||
name: revision.get('author.name') || 'Anonymous'
|
||||
}
|
||||
};
|
||||
});
|
||||
|
@ -36,6 +36,10 @@
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.nav-list-item .gh-post-history-version-meta.anonymous-author {
|
||||
color: var(--lightgrey);
|
||||
}
|
||||
|
||||
.nav-list-item .gh-post-history-version-tag {
|
||||
margin-left: .8rem;
|
||||
padding: 0 5px;
|
||||
|
Loading…
Reference in New Issue
Block a user