Hid restore button from post version when it's the latest

No ref
This commit is contained in:
Sanne de Vries 2023-04-19 16:34:53 +01:00
parent adf796f26e
commit 1c3523c2ad

View File

@ -61,7 +61,7 @@
</div>
<span class="gh-post-history-version-meta">{{revision.author.name}}</span>
</button>
{{#if revision.selected}}
{{#if (and revision.selected (not revision.latest))}}
<button type="button" class="gh-post-history-version-restore">
<span>Restore</span>
</button>