mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Added email icon to posts list sent status
refs https://github.com/TryGhost/Team/issues/954 - The email icon is signalling there was a newsletter sent with the post and allows to identify the "email only" posts easier
This commit is contained in:
parent
568e0efc28
commit
0ae602cf70
@ -68,12 +68,15 @@
|
||||
{{#if @post.isPublished}}
|
||||
<span class="gh-content-status-published nowrap">
|
||||
Published
|
||||
{{#if @post.hasEmail}}
|
||||
<span>{{svg-jar "email-unread"}}</span>
|
||||
{{/if}}
|
||||
</span>
|
||||
{{/if}}
|
||||
|
||||
{{#if @post.isSent}}
|
||||
<span class="gh-content-status-published nowrap">
|
||||
Sent
|
||||
<span class="gh-content-status-emailed nowrap">
|
||||
<span>{{svg-jar "email-unread"}}</span>
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -158,6 +158,9 @@ export default Model.extend(Comparable, ValidationEngine, {
|
||||
isPost: equal('displayName', 'post'),
|
||||
isPage: equal('displayName', 'page'),
|
||||
|
||||
hasEmail: computed('email', 'emailOnly', function () {
|
||||
return this.email !== null || this.emailOnly;
|
||||
}),
|
||||
willEmail: computed('emailRecipientFilter', function () {
|
||||
return this.emailRecipientFilter !== null;
|
||||
}),
|
||||
|
@ -273,14 +273,16 @@
|
||||
.gh-content-status-emailed {
|
||||
display: inline-block;
|
||||
margin: 0px 6px;
|
||||
background: var(--lightgrey);
|
||||
padding-right: 5px;
|
||||
color: var(--midgrey);
|
||||
background: var(--whitegrey);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.gh-content-status-emailed svg {
|
||||
.gh-content-status-emailed svg,
|
||||
.gh-content-status-published svg {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
fill: var(--midgrey);
|
||||
}
|
||||
|
||||
.gh-content-status-emailed.error {
|
||||
|
Loading…
Reference in New Issue
Block a user