Replace entry with artifact and add entity

This commit is contained in:
2022-01-05 03:04:43 +02:00
parent e22f85a1aa
commit 7be5200094
28 changed files with 560 additions and 523 deletions

View File

@@ -3,8 +3,8 @@ extend templates/layout.pug
block content
.container
.center
h1= chapter.entryVersion.translationEntryVersions[0].name
h2= chapter.entryVersion.entry.name
h1= chapter.artifactVersion.translationArtifactVersions[0].name
h2= chapter.artifactVersion.artifact.name
//- TODO: List chunks in the chapter
.row
@@ -12,8 +12,8 @@ block content
table
thead
tr
th #{chapter.entryVersion.entry.dialect.name}
th #{chapter.entryVersion.translationEntryVersions[0].name}
th #{chapter.artifactVersion.artifact.dialect.name}
th #{chapter.artifactVersion.translationArtifactVersions[0].name}
th
tbody
@@ -31,6 +31,6 @@ block content
if chunk.translated
span nothing
else if chunk.translation
a.btn.blue(href=`/translate/${chapter.entryVersion.translationEntryVersions[0].id}/chapter/${chapter.id}/t/${chunk.index}`) edit
a.btn.blue(href=`/translate/${chapter.artifactVersion.translationArtifactVersions[0].id}/chapter/${chapter.id}/t/${chunk.index}`) edit
else
a.btn.black(href=`/translate/${chapter.entryVersion.translationEntryVersions[0].id}/chapter/${chapter.id}/t/${chunk.index}`) translate
a.btn.black(href=`/translate/${chapter.artifactVersion.translationArtifactVersions[0].id}/chapter/${chapter.id}/t/${chunk.index}`) translate