{{#loading-spinner condition=loading}}

{{i18n 'admin.badges.grant_badge'}}

{{#if noBadges}}

{{i18n 'admin.badges.no_badges'}}

{{else}}
{{combo-box valueAttribute="id" value=controller.selectedBadgeId content=controller.grantableBadges}} {{/if}}

{{i18n 'admin.badges.granted_badges'}}


{{#each}} {{else}} {{/each}}
{{i18n 'admin.badges.badge'}} {{i18n 'admin.badges.granted_by'}} {{i18n 'admin.badges.granted_at'}}
{{user-badge badge=badge}} {{#link-to 'adminUser' badge.granted_by}} {{avatar granted_by imageSize="tiny"}} {{granted_by.username}} {{/link-to}} {{age-with-tooltip granted_at}}

{{i18n 'admin.badges.no_user_badges' name=user.username}}

{{/loading-spinner}}