extend templates/layout.pug block content .container .center h1= chapter.artifactVersion.translationArtifactVersions[0].name h2= chapter.artifactVersion.artifact.name //- TODO: List chunks in the chapter .row .col.s12 table thead tr th #{chapter.artifactVersion.artifact.dialect.name} th #{chapter.artifactVersion.translationArtifactVersions[0].name} th tbody each chunk in chapter.chunks tr td= chunk.text td if chunk.translated span= chunk.text else if chunk.translation span= chunk.translation.text else span.grey-text.lighten-4= chunk.text td if chunk.translated span nothing else if chunk.translation a.btn.blue(href=`/translate/${chapter.artifactVersion.translationArtifactVersions[0].id}/chapter/${chapter.id}/t/${chunk.index}`) edit else a.btn.black(href=`/translate/${chapter.artifactVersion.translationArtifactVersions[0].id}/chapter/${chapter.id}/t/${chunk.index}`) translate