Show entity names

This commit is contained in:
2022-01-08 22:24:51 +02:00
parent 79f50b6bac
commit 0062afddcf
3 changed files with 11 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ module.exports = function (options) {
association: db.Pledge.Owner,
include: [
{
association: db.Owner.OwnerEntity,
association: db.Owner.OwnerEntities,
include: [
{
association: db.OwnerEntity.Entity

View File

@@ -10,7 +10,11 @@ block content
h1 #{totalSatoshis} sats Pledge
p.flow-text
small #{pledge.owner.ownerEntity.entity.name}
each ownerEntity, index in pledge.owner.ownerEntities
small
if index > 0
span and
span #{ownerEntity.entity.name}
br
span= pledge.message

View File

@@ -13,7 +13,10 @@ block content
p.flow-text
a(href=`/pledges/${pledge.id}`) #{totalSatoshis} sats for #{pledge.translationArtifactVersionPledges.length} translations
br
small
small.chip= pledge.owner.ownerEntity.entity.name
each ownerEntity, index in pledge.owner.ownerEntities
small
if index > 0
span and
span.chip #{ownerEntity.entity.name}
br
small= pledge.message