Files
mantra.press/server/views/entry-version.pug
2021-12-25 01:35:32 +02:00

35 lines
1.3 KiB
Plaintext

extend templates/layout.pug
block content
.container
.center
h1 #{entryVersion.entry.name}
h2 #{entryVersion.tag}
.divider
.row
a.btn.black(href=`/v/${entryVersion.id}/chapters/add`) add chapter
if entryVersion.chapters.length == 0
p.flow-text No chapters added
else
.row
each chapter in entryVersion.chapters
.col.s12
a(href=`/v/${entryVersion.id}/chapters/${chapter.id}`)
.card-panel
p.flow-text= chapter.name
.divider
.row
a.btn.black(href=`/v/${entryVersion.id}/translations/add`) add translation
if entryVersion.translationEntryVersions.length == 0
p.flow-text No chapters added
else
.row
each translationEntry in entryVersion.translationEntryVersions
.col.s12
a(href=`/v/${entryVersion.id}/translations/${translationEntry.id}`)
.card-panel
p.flow-text= translationEntry.name