revuoxmrtheme/layouts/shortcodes/ccs_item.html
2024-08-31 18:18:11 -07:00

22 lines
No EOL
783 B
HTML

<div class="proposal">
<p>
<a href='{{ .Get "link" }}' target="_blank">
{{ trim .Inner "<p></p>\n\r" }}
</a><span>by {{ .Get "author" }}.</span>
</p>
{{ $goal := .Get "goal" }}
{{ $raised := .Get "raised" }}
{{ with $goal }}
<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>
<!-- Display a message at the end of the list, denoted by the "last" parameter -->
{{ with .Get "last" }}
{{ with $goal }}
<p>Find more <a href="https://ccs.getmonero.org/funding-required/" target="_blank">here</a>.
{{ else }}
<p>Find more <a href="https://ccs.getmonero.org/ideas/" target="_blank">here</a>. Posting comments in favor of, or against proposals is encouraged.</p>
{{ end }}
{{ end }}