Files
kredits-web/app/components/contributor-list/template.hbs
T
2020-05-11 10:21:18 +02:00

22 lines
685 B
Handlebars

<tbody>
{{#each @contributorList as |c|}}
<tr role="button"
{{on "click" (fn this.openContributorDetails c.contributor)}}
class="{{if (is-current-user c.contributor) "current-user"}} {{if (eq c.contributor.id @selectedContributorId) "selected"}}">
<td class="person">
<UserAvatar @contributor={{c.contributor}} /> {{c.contributor.name}}
</td>
<td class="kredits">
<span class="amount">
{{#if @showUnconfirmedKredits}}
{{c.amountTotal}}
{{else}}
{{c.amountConfirmed}}
{{/if}}
</span>
<span class="symbol">₭S</span>
</td>
</tr>
{{/each}}
</tbody>