Add versioning

This commit is contained in:
2021-12-25 01:35:32 +02:00
parent 1a539e673f
commit da9d91502c
14 changed files with 388 additions and 261 deletions

View File

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