{{#if model.canViewProfile}} {{d-icon "user"}} {{i18n "admin.user.show_public_profile"}} {{/if}} {{#if model.can_view_action_logs}} {{/if}} {{#if model.active}} {{#if currentUser.admin}} {{/if}} {{/if}}
{{#if canCheckEmails}}
{{i18n "user.email.secondary"}}
{{#if model.email}} {{#if model.secondary_emails}}
    {{#each model.secondary_emails as |email| }}
  • {{email}}
  • {{/each}}
{{else}} {{i18n "user.email.no_secondary"}} {{/if}} {{else}} {{/if}}
{{#if model.email}} {{#if model.secondary_emails}} {{#if siteSettings.auth_overrides_email}} {{i18n "user.email.auth_override_instructions"}} {{else}} {{html-safe (i18n "admin.user.visit_profile" url=preferencesPath)}} {{/if}} {{/if}} {{/if}}
{{model.bounceScore}}
{{#if model.canResetBounceScore}} {{/if}} {{model.bounceScoreExplanation}}
{{i18n "user.associated_accounts.title"}}
{{#if associatedAccountsLoaded}} {{associatedAccounts}} {{else}} {{/if}}
{{/if}}
{{i18n "user.avatar.title"}}
{{avatar model imageSize="large"}}
{{html-safe (i18n "admin.user.visit_profile" url=preferencesPath)}}
{{i18n "user.ip_address.title"}}
{{model.ip_address}}
{{#if currentUser.staff}} {{/if}}
{{i18n "user.registration_ip_address.title"}}
{{model.registration_ip_address}}
{{#if currentUser.staff}} {{/if}}
{{#if showBadges}}
{{i18n "admin.badges.title"}}
{{i18n "badges.badge_count" count=model.badge_count}}
{{d-icon "certificate"}} {{i18n "admin.badges.edit_badges"}}
{{/if}}
{{i18n "user.second_factor.title"}}
{{#if model.second_factor_enabled}} {{i18n "yes_value"}} {{else}} {{i18n "no_value"}} {{/if}}
{{#if canDisableSecondFactor}} {{/if}}
{{#if userFields}}
{{#each userFields as |uf|}}
{{uf.name}}
{{#if uf.value}} {{uf.value}} {{else}} — {{/if}}
{{/each}}
{{/if}}

{{i18n "admin.user.permissions"}}

{{#if siteSettings.must_approve_users}}
{{i18n "admin.users.approved"}}
{{#if model.approved}} {{i18n "admin.user.approved_by"}} {{avatar model.approvedBy imageSize="small"}} {{model.approvedBy.username}} {{else}} {{i18n "no_value"}} {{/if}}
{{#if model.approved}} {{i18n "admin.user.approve_success"}} {{else}} {{#if model.can_approve}} {{/if}} {{/if}}
{{/if}}
{{i18n "admin.users.active"}}
{{i18n-yes-no model.active}}
{{#if model.active}} {{#if model.can_deactivate}} {{i18n "admin.user.deactivate_explanation"}} {{/if}} {{else}} {{#if model.can_send_activation_email}} {{/if}} {{#if model.can_activate}} {{/if}} {{/if}}
{{i18n "admin.user.staged"}}
{{i18n-yes-no model.staged}}
{{i18n "admin.user.staged_explanation"}}
{{#if currentUser.admin}}
{{i18n "admin.api.active_keys"}}
{{model.api_key_count}}
{{/if}}
{{i18n "admin.user.admin"}}
{{i18n-yes-no model.admin}}
{{#if model.can_revoke_admin}} {{/if}} {{#if model.can_grant_admin}} {{/if}}
{{i18n "admin.user.moderator"}}
{{i18n-yes-no model.moderator}}
{{#if model.can_revoke_moderation}} {{/if}} {{#if model.can_grant_moderation}} {{/if}}
{{i18n "trust_level"}}
{{#if model.dirty}}
{{/if}}
{{#if model.canLockTrustLevel}} {{#if hasLockedTrustLevel}} {{d-icon "lock" title="admin.user.trust_level_locked_tip"}} {{else}} {{d-icon "unlock" title="admin.user.trust_level_unlocked_tip"}} {{/if}} {{/if}} {{#if model.tl3Requirements}} {{i18n "admin.user.trust_level_3_requirements"}} {{/if}}
{{i18n "admin.user.suspended"}}
{{i18n-yes-no model.suspended}} {{#if model.suspended}} {{#unless model.suspendedForever}} {{i18n "admin.user.suspended_until" until=model.suspendedTillDate}} {{/unless}} {{/if}}
{{#if model.suspended}} {{i18n "admin.user.suspended_explanation"}} {{else}} {{#if model.canSuspend}} {{i18n "admin.user.suspended_explanation"}} {{/if}} {{/if}}
{{#if model.suspended}}
{{i18n "admin.user.suspended_by"}}
{{avatar model.suspendedBy imageSize="tiny"}} {{model.suspendedBy.username}}
{{i18n "admin.user.suspend_reason"}}:
{{model.full_suspend_reason}}
{{/if}}
{{i18n "admin.user.silenced"}}
{{i18n-yes-no model.silenced}} {{#if model.silenced}} {{#unless model.silencedForever}} {{i18n "admin.user.suspended_until" until=model.silencedTillDate}} {{/unless}} {{/if}}
{{#if model.silenced}} {{i18n "admin.user.silence_explanation"}} {{else}} {{i18n "admin.user.silence_explanation"}} {{/if}}
{{#if model.silenced}}
{{i18n "admin.user.silenced_by"}}
{{avatar model.silencedBy imageSize="tiny"}} {{model.silencedBy.username}}
{{i18n "admin.user.silence_reason"}}:
{{model.silence_reason}}
{{/if}} {{#if model.tl3_requirements.penalty_counts.total}}
{{i18n "admin.user.penalty_count"}}
{{model.tl3_requirements.penalty_counts.total}}
{{#if currentUser.admin}}
{{i18n "admin.user.clear_penalty_history.description"}}
{{/if}}
{{/if}}
{{#if currentUser.admin}}

{{i18n "admin.groups.title"}}

{{i18n "admin.groups.automatic"}}
{{html-safe automaticGroups}}
{{i18n "admin.groups.custom"}}
{{#if customGroupsDirty}}
{{/if}}
{{#if model.customGroups}}
{{i18n "admin.groups.primary"}}
{{#if primaryGroupDirty}}
{{/if}}
{{/if}}
{{/if}}

{{i18n "admin.user.activity"}}

{{i18n "created"}}
{{format-date model.created_at leaveAgo="true"}}
{{i18n "admin.users.last_emailed"}}
{{format-date model.last_emailed_at}}
{{i18n "last_seen"}}
{{format-date model.last_seen_at leaveAgo="true"}}
{{i18n "admin.user.like_count"}}
{{model.like_given_count}} / {{model.like_count}}
{{i18n "admin.user.topics_entered"}}
{{model.topics_entered}}
{{i18n "admin.user.post_count"}}
{{model.post_count}}
{{#if model.can_delete_all_posts}} {{#if model.post_count}} {{/if}} {{else}} {{deleteAllPostsExplanation}} {{/if}}
{{i18n "admin.user.posts_read_count"}}
{{model.posts_read_count}}
{{i18n "admin.user.warnings_received_count"}}
{{model.warnings_received_count}}
{{i18n "admin.user.flags_given_received_count"}}
{{model.flags_given_count}} / {{model.flags_received_count}}
{{#if model.flags_received_count}} {{i18n "admin.user.show_flags_received"}} {{/if}}
{{i18n "admin.user.private_topics_count"}}
{{model.private_topics_count}}
{{i18n "admin.user.time_read"}}
{{format-duration model.time_read}}
{{i18n "user.invited.days_visited"}}
{{html-safe model.days_visited}}
{{i18n "admin.user.post_edits_count" }}
{{if (gt model.post_edits_count 0) model.post_edits_count "0"}}
{{#if (gt model.post_edits_count 0) }} {{d-icon "far-eye"}} {{i18n "admin.user.view_edits"}} {{/if}}
{{#if model.single_sign_on_record}}

{{i18n "admin.user.discourse_connect.title"}}

{{#let model.single_sign_on_record as |sso|}}
{{i18n "admin.user.discourse_connect.external_id"}}
{{sso.external_id}}
{{#if model.can_delete_sso_record}}
{{/if}}
{{i18n "admin.user.discourse_connect.external_username"}}
{{sso.external_username}}
{{i18n "admin.user.discourse_connect.external_name"}}
{{sso.external_name}}
{{#if canAdminCheckEmails}}
{{i18n "admin.user.discourse_connect.external_email"}}
{{#if ssoExternalEmail}}
{{ssoExternalEmail}}
{{else}} {{/if}}
{{/if}}
{{i18n "admin.user.discourse_connect.external_avatar_url"}}
{{sso.external_avatar_url}}
{{#if canAdminCheckEmails}}
{{i18n "admin.user.discourse_connect.last_payload"}}
{{#if ssoLastPayload}}
{{#each ssoPayload as |line|}} {{line}}
{{/each}}
{{else}} {{/if}}
{{/if}} {{/let}}
{{/if}}

{{#if model.active}} {{#if model.can_impersonate}} {{/if}} {{/if}} {{#if model.can_be_anonymized}} {{/if}} {{#if model.canBeDeleted}} {{/if}} {{#if model.can_be_merged}} {{/if}}
{{#if deleteExplanation}}

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