Files
kredits-web/app/components/topbar-account-panel/template.hbs
T
basti c7d046aa46 Move topbar account info to component, add tests
Adds a failing test for users with wallet, but no known contributor
account, where it currently shows no name at all.
2019-07-18 19:26:16 +02:00

12 lines
283 B
Handlebars

<section id="user-account">
{{#if kredits.hasAccounts }}
{{#if kredits.currentUser}}
{{kredits.currentUser.name}}
{{#if kredits.currentUserIsCore}}
<span class="core-flag">(core)</span>
{{/if}}
{{/if}}
{{else}}
Anonymous
{{/if}}
</section>