From 2342bfd06fdcd26d933b93be3e8668ad894bfaa6 Mon Sep 17 00:00:00 2001 From: Sanne de Vries Date: Tue, 2 May 2023 11:30:18 +0200 Subject: [PATCH] Updated status badges in post revision list Refs https://github.com/TryGhost/Team/issues/3123 --- ghost/admin/app/components/modal-post-history.hbs | 8 ++++---- ghost/admin/app/styles/layouts/post-history.css | 11 ++++++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ghost/admin/app/components/modal-post-history.hbs b/ghost/admin/app/components/modal-post-history.hbs index c120c58682..540dd49e1e 100644 --- a/ghost/admin/app/components/modal-post-history.hbs +++ b/ghost/admin/app/components/modal-post-history.hbs @@ -63,12 +63,12 @@ Latest {{/if}} - {{#if (eq revision.new_publish true)}} + {{#if revision.new_publish}} Published {{/if}} - {{!-- {{#if (eq revision.new_unpublish true)}} - Unpublished - {{/if}} --}} + {{#if revision.new_unpublish}} + Unpublished + {{/if}} {{revision.author.name}} diff --git a/ghost/admin/app/styles/layouts/post-history.css b/ghost/admin/app/styles/layouts/post-history.css index 7d47947e79..2f362f57ab 100644 --- a/ghost/admin/app/styles/layouts/post-history.css +++ b/ghost/admin/app/styles/layouts/post-history.css @@ -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 {