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

36 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
extend templates/layout.pug
block content
.container
.center
h1= chapter.entry.translationEntries[0].name
h2= chapter.entry.name
//- TODO: List chunks in the chapter
.row
.col.s12
table
thead
tr
th #{chapter.entry.dialect.name}
th #{chapter.entry.translationEntries[0].name}
th
tbody
each chunk in chapter.chunks
tr
td= chunk.text
td
if chunk.ossified
span= chunk.text
else if chunk.translation
span= chunk.translation.text
else
span= chunk.text.replaceAll(/./g, " ")
td
if chunk.ossified
span nothing
else if chunk.translation
a.btn.blue review
else
a.btn.black translate