Skip to content

Commit

Permalink
show total amount
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Mar 10, 2021
1 parent b3d69d8 commit 10fd7c0
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions app/grants/templates/grants/detail/template-grant-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ <h2 class="mb-0">

<!-- CLR details [[grant.positive_round_contributor_count]] -->
<div class="border-bottom mt-3 pb-3">

<div class="row mt-2">
<div class="col mb-4">
<h3 class="font-weight-bold">Lifetime funding received</h3>
<h2 class="font-weight-bold">$[[grant.amount_received || 0 | round | formatNumber ]]</h2>
<span>raised from all contributors</span>
</div>
</div>

<div class="row">
<h3 class="col-12" v-if="grant.clr_round_num && grant.is_clr_eligible">
Grants Round [[grant.clr_round_num]]
Expand All @@ -187,21 +196,17 @@ <h3 class="col-12" v-else>
Not in an active matching round
</h3>
</div>
<div class="row mt-2">
<div class="col col-4" v-if="grant.clr_round_num && grant.is_clr_eligible">

<div class="row mt-2" v-if="grant.clr_round_num && grant.is_clr_eligible">
<div class="col col-4">
<h2>$[[ grant.amount_received_in_round || 0 | round | formatNumber ]]</h2>
<span>
raised from [[ grant.positive_round_contributor_count ]] contributors
</span>
</div>
<div class="col col-4" v-else>
<h2>$[[grant.amount_received || 0 | round | formatNumber ]]</h2>
<span>total raised</span>
</div>
<div v-if="grant?.clr_prediction_curve?.[0]?.[1] > 0 && grant.is_clr_eligible" class="col col-4">
<div v-if="grant?.clr_prediction_curve?.[0]?.[1] > 0" class="col col-4">
<h2 class="text-secondary">+$[[ grant?.clr_prediction_curve?.[0]?.[1] || 0 | round | formatNumber ]]</h2>
<span v-if="grant.clr_round_num && grant.is_clr_eligible">estimated QF matching</span>
<span v-if="!grant.clr_round_num || !grant.is_clr_eligible">Total QF matched</span>
<span>estimated QF matching</span>
</div>
</div>
</div>
Expand Down

0 comments on commit 10fd7c0

Please sign in to comment.