revuoxmrtheme/layouts/shortcodes/ccs_item.html

13 lines
363 B
HTML
Raw Normal View History

2024-07-02 22:03:13 +00:00
<div class="proposal">
<p>
2024-07-05 00:26:46 +00:00
<a href='{{ .Get "link" }}' target="_blank">
2024-07-02 22:03:13 +00:00
{{ trim .Inner "<p></p>\n\r" }}
</a><span>by {{ .Get "author" }}.</span>
</p>
{{ $goal := .Get "goal" }}
{{ $raised := .Get "raised" }}
{{ with $goal }}
2024-07-05 17:38:13 +00:00
<p>Raised <b>{{ $raised }}</b> of <b>{{ $goal }}</b> XMR ({{ div ($raised) ($goal) | mul 100 | int }}%)</p>
2024-07-02 22:03:13 +00:00
{{ end }}
</div>