8000 show total amount by thelostone-mc · Pull Request #8529 · gitcoinco/web · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

show total amount #8529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-5">
<h3>Lifetime funding received</h3>
<h2>$[[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