{{#if active}} {{#link-to 'user' model class="btn"}} {{fa-icon "user"}} {{i18n 'admin.user.show_public_profile'}} {{/link-to}} {{#if can_impersonate}} {{/if}} {{#if currentUser.admin}} {{/if}} {{/if}}
{{i18n 'user.username.title'}}
{{username}}
{{#link-to 'preferences.username' model class="btn"}} {{fa-icon "pencil"}} {{i18n 'user.change_username.title'}} {{/link-to}}
{{#if canCheckEmails}}
{{i18n 'user.email.title'}}
{{#unless active}}
{{i18n 'admin.users.not_verified'}}
{{/unless}} {{#if email}} {{email}} {{else}} {{/if}}
{{i18n 'user.associated_accounts'}}
{{#if associated_accounts}} {{associated_accounts}} {{else}} {{/if}}
{{/if}}
{{i18n 'user.avatar.title'}}
{{avatar content imageSize="large"}}
{{i18n 'user.title.title'}}
{{#if editingTitle}} {{text-field value=title autofocus="autofocus"}} {{else}} {{title}}  {{/if}}
{{#if editingTitle}} {{d-button action="saveTitle" label="admin.user.save_title"}} {{i18n 'cancel'}} {{else}} {{d-button action="toggleTitleEdit" icon="pencil" label="admin.user.edit_title"}} {{/if}}
{{#if currentUser.admin}}
{{i18n 'admin.groups.automatic.title'}}
{{automaticGroups}}
{{i18n 'admin.groups.custom.title'}}
{{admin-group-selector selected=customGroups available=availableGroups}}
{{#if customGroups}} {{i18n 'admin.groups.primary'}} {{combo-box content=customGroups value=primary_group_id nameProperty="name" none="admin.groups.no_primary"}} {{/if}} {{#if primaryGroupDirty}} {{d-button icon="check" class="ok no-text" action="savePrimaryGroup"}} {{d-button icon="times" class="cancel no-text" action="resetPrimaryGroup"}} {{/if}}
{{/if}}
{{i18n 'user.ip_address.title'}}
{{ip_address}}
{{#if currentUser.staff}} {{ip-lookup ip=ip_address userId=id}} {{/if}}
{{i18n 'user.registration_ip_address.title'}}
{{registration_ip_address}}
{{#if currentUser.staff}} {{ip-lookup ip=registration_ip_address userId=id}} {{/if}}
{{#if showBadges}}
{{i18n 'admin.badges.title'}}
{{i18n 'badges.badge_count' count=badge_count}}
{{#link-to 'adminUser.badges' this class="btn"}}{{fa-icon "certificate"}}{{i18n 'admin.badges.edit_badges'}}{{/link-to}}
{{/if}}
{{#if userFields}}
{{#each uf in userFields}}
{{uf.name}}
{{#if uf.value}} {{uf.value}} {{else}} — {{/if}}
{{/each}}
{{/if}}

{{i18n 'admin.user.permissions'}}

{{#if showApproval}}
{{i18n 'admin.users.approved'}}
{{#if approved}} {{i18n 'admin.user.approved_by'}} {{#link-to 'adminUser' approvedBy}}{{avatar approvedBy imageSize="small"}}{{/link-to}} {{#link-to 'adminUser' approvedBy}}{{approvedBy.username}}{{/link-to}} {{else}} {{i18n 'no_value'}} {{/if}}
{{#if approved}} {{i18n 'admin.user.approve_success'}} {{else}} {{#if can_approve}} {{/if}} {{/if}}
{{/if}}
{{i18n 'admin.users.active'}}
{{#if active}} {{i18n 'yes_value'}} {{else}} {{i18n 'no_value'}} {{/if}}
{{#if active}} {{#if can_deactivate}} {{i18n 'admin.user.deactivate_explanation'}} {{/if}} {{else}} {{#if can_send_activation_email}} {{/if}} {{#if can_activate}} {{/if}} {{/if}}
{{i18n 'admin.api.key'}}
{{#if api_key}}
{{api_key.key}} {{d-button action="regenerateApiKey" icon="undo" label="admin.api.regenerate"}} {{d-button action="revokeApiKey" icon="times" label="admin.api.revoke"}}
{{else}}
{{d-button action="generateApiKey" icon="key" label="admin.api.generate"}}
{{/if}}
{{i18n 'admin.user.admin'}}
{{admin}}
{{#if can_revoke_admin}} {{/if}} {{#if can_grant_admin}} {{/if}}
{{i18n 'admin.user.moderator'}}
{{moderator}}
{{#if can_revoke_moderation}} {{/if}} {{#if can_grant_moderation}} {{/if}}
{{i18n 'trust_level'}}
{{combo-box content=trustLevels value=trust_level nameProperty="detailedName"}} {{#if dirty}}
{{/if}}
{{#if model.canLockTrustLevel}} {{#if model.trust_level_locked}} {{else}} {{/if}} {{/if}} {{#if tl3Requirements}} {{#link-to 'adminUser.tl3Requirements' this class="btn"}}{{i18n 'admin.user.trust_level_3_requirements'}}{{/link-to}} {{/if}}
{{i18n 'admin.user.suspended'}}
{{isSuspended}}
{{#if isSuspended}} {{suspendDuration}} {{i18n 'admin.user.suspended_explanation'}} {{else}} {{#if canSuspend}} {{i18n 'admin.user.suspended_explanation'}} {{/if}} {{/if}}
{{#if isSuspended}}
{{i18n 'admin.user.suspended_by'}}
{{#link-to 'adminUser' suspendedBy}}{{avatar suspendedBy imageSize="tiny"}}{{/link-to}} {{#link-to 'adminUser' suspendedBy}}{{suspendedBy.username}}{{/link-to}}
{{i18n 'admin.user.suspend_reason'}}: {{suspend_reason}}
{{/if}}
{{i18n 'admin.user.blocked'}}
{{blocked}}
{{#if blocked}} {{i18n 'admin.user.block_explanation'}} {{/if}}

{{i18n 'admin.user.activity'}}

{{i18n 'created'}}
{{{created_at_age}}}
{{i18n 'admin.users.last_emailed'}}
{{{last_emailed_age}}}
{{i18n 'last_seen'}}
{{{last_seen_age}}}
{{i18n 'admin.user.like_count'}}
{{like_given_count}} / {{like_count}}
{{i18n 'admin.user.topics_entered'}}
{{topics_entered}}
{{i18n 'admin.user.post_count'}}
{{post_count}}
{{#if can_delete_all_posts}} {{#if post_count}} {{/if}} {{else}} {{deleteAllPostsExplanation}} {{/if}}
{{i18n 'admin.user.posts_read_count'}}
{{posts_read_count}}
{{i18n 'admin.user.warnings_received_count'}}
{{warnings_received_count}}
{{i18n 'admin.user.flags_given_received_count'}}
{{flags_given_count}} / {{flags_received_count}}
{{i18n 'admin.user.private_topics_count'}}
{{private_topics_count}}
{{i18n 'admin.user.time_read'}}
{{{time_read}}}
{{i18n 'user.invited.days_visited'}}
{{{days_visited}}}
{{#if single_sign_on_record}}

{{i18n 'admin.user.sso.title'}}

{{#with single_sign_on_record}}
{{i18n 'admin.user.sso.external_id'}}
{{external_id}}
{{i18n 'admin.user.sso.external_username'}}
{{external_username}}
{{i18n 'admin.user.sso.external_name'}}
{{external_name}}
{{i18n 'admin.user.sso.external_email'}}
{{external_email}}
{{i18n 'admin.user.sso.external_avatar_url'}}
{{external_avatar_url}}
{{/with}}
{{/if}}

{{#unless anonymizeForbidden}} {{d-button label="admin.user.anonymize" icon="exclamation-triangle" class="btn btn-danger" disabled=anonymizeForbidden action="anonymize"}} {{/unless}} {{#unless deleteForbidden}} {{d-button label="admin.user.delete" icon="exclamation-triangle" class="btn btn-danger" disabled=deleteForbidden action="destroy"}} {{/unless}}
{{#if deleteExplanation}}

{{fa-icon "exclamation-triangle"}} {{deleteExplanation}}
{{/if}}