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, association: db.Pledge.Owner,
include: [ include: [
{ {
association: db.Owner.OwnerEntity, association: db.Owner.OwnerEntities,
include: [ include: [
{ {
association: db.OwnerEntity.Entity association: db.OwnerEntity.Entity

View File

@@ -10,7 +10,11 @@ block content
h1 #{totalSatoshis} sats Pledge h1 #{totalSatoshis} sats Pledge
p.flow-text 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 br
span= pledge.message span= pledge.message

View File

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