Merge pull request #7 from recanman/main

fix: raised percentage
This commit is contained in:
rottenwheel 2024-07-05 12:40:40 -05:00 committed by GitHub
commit 2e6dde0ba7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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>