Add versioning

This commit is contained in:
2021-12-25 01:35:32 +02:00
parent 1a539e673f
commit da9d91502c
14 changed files with 388 additions and 261 deletions

View File

@@ -7,28 +7,14 @@ block content
.divider
.row
a.btn.black(href=`/library/${entry.id}/chapters/add`) add chapter
a.btn.black(href=`/library/${entry.id}/version/add`) add version
if entry.chapters.length == 0
p.flow-text No chapters added
if entry.entryVersions.length == 0
p.flow-text No available versions
else
.row
each chapter in entry.chapters
each entryVersion in entry.entryVersions
.col.s12
a(href=`/library/${entry.id}/chapters/${chapter.id}`)
a(href=`/library/${entryVersion.entryId}/v/${entryVersion.id}`)
.card-panel
p.flow-text= chapter.name
.divider
.row
a.btn.black(href=`/library/${entry.id}/translations/add`) add translation
if entry.translationEntries.length == 0
p.flow-text No chapters added
else
.row
each translationEntry in entry.translationEntries
.col.s12
a(href=`/library/${entry.id}/translations/${translationEntry.id}`)
.card-panel
p.flow-text= translationEntry.name
p.flow-text= entryVersion.tag