{{#conditional-loading-spinner condition=loading}}

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


{{#if noBadges}}

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

{{else}}
{{combo-box valueAttribute="id" value=selectedBadgeId content=grantableBadges nameProperty="name"}}
{{/if}} {{#each userBadge in groupedBadges}} {{else}} {{/each}}
{{i18n 'admin.badges.badge'}} {{i18n 'admin.badges.granted_by'}} {{i18n 'admin.badges.reason'}} {{i18n 'admin.badges.granted_at'}}
{{user-badge badge=userBadge.badge count=userBadge.count}} {{#link-to 'adminUser' userBadge.badge.granted_by}} {{avatar userBadge.granted_by imageSize="tiny"}} {{userBadge.granted_by.username}} {{/link-to}} {{#if userBadge.postUrl}} {{userBadge.topic_title}} {{/if}} {{age-with-tooltip userBadge.granted_at}} {{#if userBadge.grouped}} {{else}} {{/if}}

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

{{/conditional-loading-spinner}}