Updated status badges in post revision list

Refs https://github.com/TryGhost/Team/issues/3123
This commit is contained in:
Sanne de Vries 2023-05-02 11:30:18 +02:00
parent 1b38361211
commit 2342bfd06f
2 changed files with 12 additions and 7 deletions

View File

@ -63,12 +63,12 @@
<span class="gh-post-history-version-tag current">Latest</span>
{{/if}}
{{#if (eq revision.new_publish true)}}
{{#if revision.new_publish}}
<span class="gh-post-history-version-tag published">Published</span>
{{/if}}
{{!-- {{#if (eq revision.new_unpublish true)}}
<span class="gh-post-history-version-tag current">Unpublished</span>
{{/if}} --}}
{{#if revision.new_unpublish}}
<span class="gh-post-history-version-tag unpublished">Unpublished</span>
{{/if}}
</div>
<span class="gh-post-history-version-meta {{if (eq revision.author.name "Deleted staff user") "deleted-user"}}">{{revision.author.name}}</span>

View File

@ -53,12 +53,17 @@
.nav-list-item .gh-post-history-version-tag.current {
background: var(--lightgrey-l2);
color: var(--darkgrey);
color: var(--middarkgrey);
}
.nav-list-item .gh-post-history-version-tag.published {
background: var(--green-d1);
color: var(--white);
background: color-mod(var(--green) a(20%));
color: var(--green-d2);
}
.nav-list-item .gh-post-history-version-tag.unpublished {
background: color-mod(var(--pink) a(15%));
color: var(--pink-d1);
}
.nav-list-item .gh-post-history-version-restore {