mirror of
https://github.com/rottenwheel/revuoxmrtheme.git
synced 2024-11-09 12:10:04 +00:00
fix: ccs percentage with integers
This commit is contained in:
parent
d3fefcb904
commit
5ce6f6a296
1 changed files with 2 additions and 2 deletions
|
@ -8,6 +8,6 @@
|
||||||
{{ $goal := .Get "goal" }}
|
{{ $goal := .Get "goal" }}
|
||||||
{{ $raised := .Get "raised" }}
|
{{ $raised := .Get "raised" }}
|
||||||
{{ with $goal }}
|
{{ 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 }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue