View translations from entry
This commit is contained in:
@@ -75,6 +75,9 @@ module.exports = function (options) {
|
||||
},
|
||||
{
|
||||
association: db.Entry.Chapters
|
||||
},
|
||||
{
|
||||
association: db.Entry.TranslationEntries
|
||||
}
|
||||
]
|
||||
}).then(entry => {
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user