Adjust action wording to show only latest action in patch list

It will show either "Opened x days ago" or "Updated x days ago"
depending whether there is one or multiple revisions.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-05-12 07:59:54 +02:00
parent d5e194bf11
commit 34f40fba02
+3 -3
View File
@@ -147,9 +147,9 @@
</div>
<div class="summary">
<span class="meta id">
{formatObjectId(patch.id)} opened {formatTimestamp(
latestRevision.timestamp,
)} by
{formatObjectId(patch.id)}
{patch.revisions.length > 1 ? "updated" : "opened"}
{formatTimestamp(latestRevision.timestamp)} by
<Authorship authorId={patch.author.id} />
</span>
</div>