Add chapters

This commit is contained in:
2021-12-19 21:04:17 +02:00
parent f259651ec9
commit 722c6a9bc5
4 changed files with 138 additions and 1 deletions

View File

@@ -3,4 +3,16 @@ extend templates/layout.pug
block content
.container
.center
h1= entry.name
h1= entry.name
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
p.flow-text= chapter.name