View translations from entry

This commit is contained in:
kngako committed 2021-12-20 00:27:21 +02:00
1 parent 32a70881ba
commit 9731ed9475
2 files changed
+14 -1

No files matched your search

+3
View File
@@ -75,6 +75,9 @@ module.exports = function (options) {
},
{
association: db.Entry.Chapters
},
{
association: db.Entry.TranslationEntries
}
]
}).then(entry => {
+11 -1
View File
@@ -21,4 +21,14 @@ block content
.divider
.row
a.btn.black(href=`/library/${entry.id}/translations/add`) add translation
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