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

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


{{#if noGrantableBadges}}

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

{{else}}
{{combo-box forceEscape=true filterable=true value=selectedBadgeId content=grantableBadges}}
{{input type="text" value=badgeReason}}
{{i18n 'admin.badges.reason_help'}}
{{d-button class="btn-primary" action=(action "grantBadge") label="admin.badges.grant"}}
{{/if}} {{#each groupedBadges as |userBadge|}} {{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}} {{d-button action=(action "expandGroup" userBadge) label="admin.badges.expand"}} {{else}} {{d-button class="btn-danger" action=(action "revokeBadge" userBadge) label="admin.badges.revoke"}} {{/if}}

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

{{/conditional-loading-spinner}}