Files
kredits-web/app/components/contributor-list/template.hbs
raucao 14da36b806 Only show top 10 contributors by default
Don't waste so much screen real estate. Add button to show all to the
end of the toplist.
2025-02-16 14:21:51 +04:00

33 lines
1012 B
Handlebars

<table class="contributor-list {{if @loading 'loading'}}">
<thead>
</thead>
<tbody>
{{#each this.contributors as |c|}}
<tr role="button"
onclick={{action "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}}
{{#if this.showToplistOnly}}
<tr role="button" onclick={{action "showAllContributors"}}>
<td colspan="2">
{{this.showAllButtonText}}
</td>
</tr>
{{/if}}
</tbody>
</table>