mirror of
https://github.com/rottenwheel/revuoxmrtheme.git
synced 2024-11-09 20:53:45 +01:00
Merge pull request #11 from recanman/main
fix: ccs percentage with integers
This commit is contained in:
commit
5d80005479
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user