Create proposal-list/item component

This commit is contained in:
2018-04-24 15:27:54 +02:00
committed by Sebastian Kippe
parent 575c1a11c2
commit 1945074db6
2 changed files with 37 additions and 0 deletions
@@ -0,0 +1,8 @@
<span class="category {{proposal.kind}}">♥</span>
<span class="amount">{{proposal.amount}}</span><span class="symbol">₭S</span>
for <span class="recipient">{{proposal.contributor.name}}</span>
<span class="votes">({{proposal.votesCount}}/{{proposal.votesNeeded}} votes)</span>
{{#if canBeVoted}}
<button {{action toggleSelect proposal.id selected}} class="{{if selected 'selected' ''}}">+1</button>
{{/if}}