Files
mantra.press/server/views/translate-chapter.pug

36 lines
1.8 KiB
Plaintext
Raw Normal View History

extend templates/layout.pug
block content
.container
.center
2021-12-25 01:35:32 +02:00
h1= chapter.entryVersion.translationEntryVersions[0].name
h2= chapter.entryVersion.entry.name
//- TODO: List chunks in the chapter
.row
.col.s12
table
thead
tr
2021-12-25 01:35:32 +02:00
th #{chapter.entryVersion.entry.dialect.name}
th #{chapter.entryVersion.translationEntryVersions[0].name}
th
tbody
each chunk in chapter.chunks
tr
td= chunk.text
td
2021-12-22 22:34:58 +02:00
if chunk.translated
span= chunk.text
else if chunk.translation
span= chunk.translation.text
else
2021-12-23 01:22:54 +02:00
span.grey-text.lighten-4= chunk.text
td
2021-12-22 22:34:58 +02:00
if chunk.translated
span nothing
else if chunk.translation
2021-12-25 02:11:43 +02:00
a.btn.blue(href=`/translate/${chapter.entryVersion.translationEntryVersions[0].id}/chapter/${chapter.id}/t/${chunk.index}`) edit
else
2021-12-25 01:35:32 +02:00
a.btn.black(href=`/translate/${chapter.entryVersion.translationEntryVersions[0].id}/chapter/${chapter.id}/t/${chunk.index}`) translate