Add pledges
This commit is contained in:
23
server/views/pledge.pug
Normal file
23
server/views/pledge.pug
Normal file
@@ -0,0 +1,23 @@
|
||||
extend templates/layout.pug
|
||||
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
-
|
||||
const totalSatoshis = pledge.translationArtifactVersionPledges.reduce((accumulator, translationArtifactVersionPledge) => {
|
||||
return accumulator + translationArtifactVersionPledge.satoshis
|
||||
}, 0)
|
||||
h1 #{totalSatoshis} sats Pledge
|
||||
|
||||
p.flow-text
|
||||
small #{pledge.entity.name}
|
||||
br
|
||||
span= pledge.message
|
||||
|
||||
p.flow-text for completion of the following translations
|
||||
|
||||
each translationArtifactVersionPledge in pledge.translationArtifactVersionPledges
|
||||
|
||||
p.flow-text #{translationArtifactVersionPledge.translationArtifactVersion.name} - #{translationArtifactVersionPledge.translationArtifactVersion.artifactVersion.artifact.name} - #{translationArtifactVersionPledge.translationArtifactVersion.artifactVersion.tag}
|
||||
br
|
||||
small #{translationArtifactVersionPledge.satoshis} sats
|
||||
@@ -3,4 +3,17 @@ extend templates/layout.pug
|
||||
block content
|
||||
.container
|
||||
.center
|
||||
h1 Pledges
|
||||
h1 Pledges
|
||||
|
||||
each pledge in pledges
|
||||
-
|
||||
const totalSatoshis = pledge.translationArtifactVersionPledges.reduce((accumulator, translationArtifactVersionPledge) => {
|
||||
return accumulator + translationArtifactVersionPledge.satoshis
|
||||
}, 0)
|
||||
p.flow-text
|
||||
a(href=`/pledges/${pledge.id}`) #{totalSatoshis} sats for #{pledge.translationArtifactVersionPledges.length} translations
|
||||
br
|
||||
small
|
||||
small.chip= pledge.entity.name
|
||||
br
|
||||
small= pledge.message
|
||||
Reference in New Issue
Block a user