revuoxmrtheme/layouts/shortcodes/ccs_item.html

22 lines
783 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-08-31 01:31:50 +00:00
<p>Raised <b>{{ $raised }}</b> of <b>{{ $goal }}</b> XMR ({{ div (mul $raised 1.0) (mul $goal 1.0) | mul 100 | int }}%)</p>
2024-07-02 22:03:13 +00:00
{{ end }}
2024-08-31 01:31:50 +00:00
</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 }}