From 34f40fba02e82cac6fca04f8caba4a05ea2b46c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 12 May 2023 06:51:17 +0200 Subject: [PATCH] Adjust action wording to show only latest action in patch list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ņš --- src/views/projects/Patch/PatchTeaser.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/projects/Patch/PatchTeaser.svelte b/src/views/projects/Patch/PatchTeaser.svelte index f5dbf8c5a..6dce66906 100644 --- a/src/views/projects/Patch/PatchTeaser.svelte +++ b/src/views/projects/Patch/PatchTeaser.svelte @@ -147,9 +147,9 @@
- {formatObjectId(patch.id)} opened {formatTimestamp( - latestRevision.timestamp, - )} by + {formatObjectId(patch.id)} + {patch.revisions.length > 1 ? "updated" : "opened"} + {formatTimestamp(latestRevision.timestamp)} by