Compare commits

...

2 Commits

Author SHA1 Message Date
rottenwheel
5d80005479
Merge pull request #11 from recanman/main
fix: ccs percentage with integers
2024-08-31 05:13:28 +00:00
recanman
5ce6f6a296
fix: ccs percentage with integers 2024-08-31 01:31:50 +00:00

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>
</div>