From c8d945c38f37d48b960d35bd497f4d87f82f8b59 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Sun, 9 Jan 2022 02:01:27 +0200 Subject: [PATCH] Some tweaks to the library page --- server/views/library.pug | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/views/library.pug b/server/views/library.pug index 8436c9d..d8f7800 100644 --- a/server/views/library.pug +++ b/server/views/library.pug @@ -7,7 +7,7 @@ block content a.btn.black(href="/library/add") add artifact if artifacts.length == 0 - p.flow-text No Literature currently on the system + p.flow-text You currently have no content to manage/translate else .row each artifact in artifacts @@ -15,11 +15,11 @@ block content a(href=`/library/${artifact.id}`) .card-panel p.flow-text= artifact.name - - .divider - h2 forks + if translationArtifactVersions.length > 0 + .divider + h2 forks each translationArtifactVersion in translationArtifactVersions p.flow-text a(href=`/v/${translationArtifactVersion.artifactVersionId}/translations/${translationArtifactVersion.id}`)= translationArtifactVersion.name - else +