Files
mantra.press/server/views/artifact-version.pug

41 lines
1.6 KiB
Plaintext

extend templates/layout.pug
block content
.container
.center
h1 #{artifactVersion.artifact.name}
h2 #{artifactVersion.tag}
.row
.col.s12
a.btn.black(href=`/fork/e/${artifactVersion.id}`) fork
.row
.col.s12
a.btn.black(href=`/v/${artifactVersion.id}/campaign/create`) funding campaign
.divider
.row
a.btn.black(href=`/v/${artifactVersion.id}/chapters/add`) add chapter
if artifactVersion.chapters.length == 0
p.flow-text No chapters added
else
.row
each chapter in artifactVersion.chapters
.col.s12
a(href=`/v/${artifactVersion.id}/chapters/${chapter.id}`)
.card-panel
p.flow-text= chapter.name
.divider
.row
a.btn.black(href=`/v/${artifactVersion.id}/translations/add`) add translation
if artifactVersion.translationArtifactVersions.length == 0
p.flow-text No chapters added
else
.row
each translationArtifact in artifactVersion.translationArtifactVersions
.col.s12
a(href=`/v/${artifactVersion.id}/translations/${translationArtifact.id}`)
.card-panel
p.flow-text= translationArtifact.name