fix: raised percentage

This commit is contained in:
recanman 2024-07-05 10:38:13 -07:00
parent 23b3be8769
commit b48d322f02

View file

@ -8,6 +8,6 @@
{{ $goal := .Get "goal" }}
{{ $raised := .Get "raised" }}
{{ with $goal }}
<p>Raised <b>{{ $raised }}</b> of <b>{{ $goal }}</b> XMR ({{ div (.) ($goal) | mul 100 | int }}%)</p>
<p>Raised <b>{{ $raised }}</b> of <b>{{ $goal }}</b> XMR ({{ div ($raised) ($goal) | mul 100 | int }}%)</p>
{{ end }}
</div>