fix: ccs percentage with integers

This commit is contained in:
recanman 2024-08-31 01:31:50 +00:00 committed by GitHub
parent d3fefcb904
commit 5ce6f6a296
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 ($raised) ($goal) | mul 100 | int }}%)</p>
<p>Raised <b>{{ $raised }}</b> of <b>{{ $goal }}</b> XMR ({{ div (mul $raised 1.0) (mul $goal 1.0) | mul 100 | int }}%)</p>
{{ end }}
</div>