Add account badge

This gives easy access to test if the "user/visitor" has an account, is
a contributor and if she is core.
This is used to display some account information.
This commit is contained in:
2018-04-06 16:45:55 +02:00
parent b9d78efaff
commit bbea07b2a7
2 changed files with 51 additions and 11 deletions
+12 -1
View File
@@ -1,8 +1,19 @@
{{#if kredits.hasAccounts }}
<section id="user-account">
{{#if kredits.currentUser }}
{{ kredits.currentUser.name }}
{{#if kredits.currentUserIsCore }}
(core)
{{/if}}
Account: {{kredits.currentUser.address}}
{{/if}}
</section>
{{/if}}
<section id="contributors">
<header>
<h2>Kosmos Contributors</h2>
</header>
<div class="content">
{{contributor-list contributors=contributorsSorted}}