Add translator/editors buttons

This commit is contained in:
kngako
2022-06-19 23:31:16 +02:00
parent eba4f3b6b1
commit dc37529d49
4 changed files with 53 additions and 3 deletions

View File

@@ -6,6 +6,32 @@ block content
h1= translationChapter.translationArtifactVersion.name
h2= translationChapter.translationArtifactVersion.artifactVersion.artifact.name
p.flow-text
span.chip #{translationChapter.chapter.wordCount.toLocaleString()} words
.row
.col.s12.m4
p.flow-text
a.btn-flat.waves-effect Translator ▼
if translationChapter.translationChapterTranslators.length > 0
span With #{translationChapter.translationChapterTranslators.length} translator(s) assigned
else
span No translators assigned yet
.col.s12.m4
p.flow-text
a.btn-flat.waves-effect Editor ▼
if translationChapter.translationArtifactVersion.translationArtifactVersionEditor
span= translationChapter.translationArtifactVersion.translationArtifactVersionEditor.id
else
span No editors assigned yet
.col.s12.m4
p.flow-text
a.btn-flat.waves-effect Proof Reader ▼
if translationChapter.translationChapterProofReaders.length > 0
span With #{translationChapter.translationChapterProofReaders.length} proof reader(s) assigned
else
span No proof reader assigned yet
//- TODO: List translationChunks in the chapter
.row
.col.s12