This commit is contained in:
kngako
2022-06-19 03:00:48 +02:00
parent 95df947054
commit 4d02795a45
2 changed files with 41 additions and 10 deletions

View File

@@ -40,6 +40,12 @@ block content
if isOwnedByUser
.divider
.row
.col.s12
p.flow-text
-
const wordCount = artifactVersion.chapters.reduce((totalWordCount, chapter) => totalWordCount+chapter.wordCount, 0)
span.chip #{wordCount.toLocaleString()} words
.row
.col.s12
a.btn.black(href=`/v/${artifactVersion.id}/chapters/add`) add chapter