Files
mantra.press/server/views/translation-artifact-version.pug
2022-01-08 00:59:36 +02:00

40 lines
1.7 KiB
Plaintext

extend templates/layout.pug
block content
.container
.center
h1= translationArtifactVersion.name
h2= translationArtifactVersion.artifactVersion.artifact.name
if translationArtifactVersion.forkedFrom
p.flow-text is a
a(href=`/v/${translationArtifactVersion.forkedFrom.artifactVersionId}/translations/${translationArtifactVersion.forkedFrom.id}`) fork
//- TODO: Condition to show translate button
.row
.col.s12
a.btn.black(href=`/translate/${translationArtifactVersion.id}`) Translate
//- TODO: Condition to show fork button
.row
.col.s12
form(action=`/fork/t/${translationArtifactVersion.id}`, method="post")
button.btn.black(type="submit") fork
.row
.col.s12
form(action=`/translate/${translationArtifactVersion.id}/back`, method="post")
button.btn.black(type="submit") back translate
.row
.col.s12
a.btn.black(href=`/translate/${translationArtifactVersion.id}/campaigns`) funding campaign
.row
.col.s12
a.btn.black(href=`/translate/${translationArtifactVersion.id}/pledges`) pledge
//- TODO: Give summary of chapters...
h2 Chapters
each translationChapter in translationArtifactVersion.translationChapters
p.flow-text
a(href=`/translate/${translationArtifactVersion.id}/chapter/${translationChapter.id}`)= translationChapter.chapter.name