Added post status conditions in history modal

no issue
This commit is contained in:
Ronald 2023-04-21 15:55:58 +01:00
parent a704071448
commit 0751ff9e9d

View File

@ -51,10 +51,11 @@
<span class="gh-post-history-version">{{gh-format-post-time revision.createdAt format="D MMM YYYY, HH:mm"}}{{this.timezone}}</span>
{{#if revision.latest}}
<span class="gh-post-history-version-tag current">Latest</span>
{{#if (eq revision.postStatus "published")}}
<span class="gh-post-history-version-tag published">{{{revision.postStatus}}}</span>
{{/if}}
{{/if}}
{{#if revision.published}}
<span class="gh-post-history-version-tag published">Published</span>
{{/if}}
</div>
<span class="gh-post-history-version-meta {{if (eq revision.author.name "Deleted staff user") "deleted-user"}}">{{revision.author.name}}</span>
</button>