Files
mantra.press/server/views/translate-chapter-view.pug
2022-01-07 23:18:02 +02:00

23 lines
826 B
Plaintext

extend templates/layout.pug
block content
.container
.center
h1= chapter.artifactVersion.translationArtifactVersions[0].name
h2= chapter.artifactVersion.artifact.name
//- TODO: export to markdown...
.row
.col.s12
a.btn.black(href=`/translate/${chapter.artifactVersion.translationArtifactVersions[0].id}/chapter/${chapter.id}/markdown`) export markdown
.row
.col.s12
each chunk in chapter.chunks
p.flow-text
if chunk.translation
span= chunk.translation.text
else
span.grey-text= chunk.text