2021-12-19 18:17:51 +02:00
|
|
|
extend templates/layout.pug
|
|
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
.container
|
|
|
|
|
.center
|
2021-12-19 21:04:17 +02:00
|
|
|
h1= entry.name
|
|
|
|
|
|
2021-12-19 23:54:40 +02:00
|
|
|
.divider
|
|
|
|
|
.row
|
2021-12-19 21:04:17 +02:00
|
|
|
a.btn.black(href=`/library/${entry.id}/chapters/add`) add chapter
|
|
|
|
|
|
|
|
|
|
if entry.chapters.length == 0
|
|
|
|
|
p.flow-text No chapters added
|
|
|
|
|
else
|
|
|
|
|
.row
|
|
|
|
|
each chapter in entry.chapters
|
|
|
|
|
.col.s12
|
|
|
|
|
a(href=`/library/${entry.id}/chapters/${chapter.id}`)
|
|
|
|
|
.card-panel
|
2021-12-19 23:54:40 +02:00
|
|
|
p.flow-text= chapter.name
|
|
|
|
|
|
|
|
|
|
.divider
|
|
|
|
|
.row
|
2021-12-20 00:27:21 +02:00
|
|
|
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
|