{{#if this.model.canViewProfile}}
{{d-icon "user"}}
{{i18n "admin.user.show_public_profile"}}
{{/if}}
{{#if this.model.can_view_action_logs}}
{{/if}}
{{#if this.model.active}}
{{#if this.currentUser.admin}}
{{/if}}
{{/if}}
{{#if this.canCheckEmails}}
{{i18n "user.email.primary"}}
{{#unless this.model.active}}
{{i18n "admin.users.not_verified"}}
{{/unless}}
{{#if this.model.email}}
{{this.model.email}}
{{else}}
{{/if}}
{{#if this.siteSettings.auth_overrides_email}}
{{i18n "user.email.auth_override_instructions"}}
{{else if this.model.email}}
{{html-safe (i18n "admin.user.visit_profile" url=this.preferencesPath)}}
{{/if}}
{{i18n "user.email.secondary"}}
{{#if this.model.email}}
{{#if this.model.secondary_emails}}
{{#each this.model.secondary_emails as |email| }}
- {{email}}
{{/each}}
{{else}}
{{i18n "user.email.no_secondary"}}
{{/if}}
{{else}}
{{/if}}
{{#if this.model.email}}
{{#if this.model.secondary_emails}}
{{#if this.siteSettings.auth_overrides_email}}
{{i18n "user.email.auth_override_instructions"}}
{{else}}
{{html-safe (i18n "admin.user.visit_profile" url=this.preferencesPath)}}
{{/if}}
{{/if}}
{{/if}}
{{this.model.bounceScore}}
{{#if this.model.canResetBounceScore}}
{{/if}}
{{this.model.bounceScoreExplanation}}
{{i18n "user.associated_accounts.title"}}
{{#if this.associatedAccountsLoaded}}
{{this.associatedAccounts}}
{{else}}
{{/if}}
{{/if}}
{{i18n "user.avatar.title"}}
{{avatar this.model imageSize="large"}}
{{html-safe (i18n "admin.user.visit_profile" url=this.preferencesPath)}}
{{i18n "user.ip_address.title"}}
{{this.model.ip_address}}
{{#if this.currentUser.staff}}
{{/if}}
{{i18n "user.registration_ip_address.title"}}
{{this.model.registration_ip_address}}
{{#if this.currentUser.staff}}
{{/if}}
{{#if this.showBadges}}
{{i18n "admin.badges.title"}}
{{i18n "badges.badge_count" count=this.model.badge_count}}
{{d-icon "certificate"}}
{{i18n "admin.badges.edit_badges"}}
{{/if}}
{{i18n "user.second_factor.title"}}
{{#if this.model.second_factor_enabled}}
{{i18n "yes_value"}}
{{else}}
{{i18n "no_value"}}
{{/if}}
{{#if this.canDisableSecondFactor}}
{{/if}}
{{#if this.userFields}}
{{i18n "admin.user.permissions"}}
{{#if this.siteSettings.must_approve_users}}
{{i18n "admin.users.approved"}}
{{#if this.model.approved}}
{{i18n "admin.user.approved_by"}}
{{avatar this.model.approvedBy imageSize="small"}}
{{this.model.approvedBy.username}}
{{else}}
{{i18n "no_value"}}
{{/if}}
{{#if this.model.approved}}
{{i18n "admin.user.approve_success"}}
{{else}}
{{#if this.model.can_approve}}
{{/if}}
{{/if}}
{{/if}}
{{i18n "admin.users.active"}}
{{i18n-yes-no this.model.active}}
{{#if this.model.active}}
{{#if this.model.can_deactivate}}
{{i18n "admin.user.deactivate_explanation"}}
{{/if}}
{{else}}
{{#if this.model.can_send_activation_email}}
{{/if}}
{{#if this.model.can_activate}}
{{/if}}
{{/if}}
{{i18n "admin.user.staged"}}
{{i18n-yes-no this.model.staged}}
{{i18n "admin.user.staged_explanation"}}
{{#if this.currentUser.admin}}
{{i18n "admin.api.active_keys"}}
{{this.model.api_key_count}}
{{/if}}
{{i18n "admin.user.admin"}}
{{i18n-yes-no this.model.admin}}
{{#if this.model.can_revoke_admin}}
{{/if}}
{{#if this.model.can_grant_admin}}
{{/if}}
{{i18n "admin.user.moderator"}}
{{i18n-yes-no this.model.moderator}}
{{#if this.model.can_revoke_moderation}}
{{/if}}
{{#if this.model.can_grant_moderation}}
{{/if}}
{{i18n "trust_level"}}
{{#if this.model.dirty}}
{{/if}}
{{#if this.model.canLockTrustLevel}}
{{#if this.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 this.model.tl3Requirements}}
{{i18n "admin.user.trust_level_3_requirements"}}
{{/if}}
{{i18n "admin.user.suspended"}}
{{i18n-yes-no this.model.suspended}}
{{#if this.model.suspended}}
{{#unless this.model.suspendedForever}}
{{i18n "admin.user.suspended_until" until=this.model.suspendedTillDate}}
{{/unless}}
{{/if}}
{{#if this.model.suspended}}
{{i18n "admin.user.suspended_explanation"}}
{{else}}
{{#if this.model.canSuspend}}
{{i18n "admin.user.suspended_explanation"}}
{{/if}}
{{/if}}
{{#if this.model.suspended}}
{{i18n "admin.user.suspended_by"}}
{{avatar this.model.suspendedBy imageSize="tiny"}}
{{this.model.suspendedBy.username}}
{{i18n "admin.user.suspend_reason"}}:
{{this.model.full_suspend_reason}}
{{/if}}
{{i18n "admin.user.silenced"}}
{{i18n-yes-no this.model.silenced}}
{{#if this.model.silenced}}
{{#unless this.model.silencedForever}}
{{i18n "admin.user.suspended_until" until=this.model.silencedTillDate}}
{{/unless}}
{{/if}}
{{#if this.model.silenced}}
{{i18n "admin.user.silence_explanation"}}
{{else}}
{{i18n "admin.user.silence_explanation"}}
{{/if}}
{{#if this.model.silenced}}
{{i18n "admin.user.silenced_by"}}
{{avatar this.model.silencedBy imageSize="tiny"}}
{{this.model.silencedBy.username}}
{{i18n "admin.user.silence_reason"}}:
{{this.model.silence_reason}}
{{/if}}
{{#if this.model.tl3_requirements.penalty_counts.total}}
{{i18n "admin.user.penalty_count"}}
{{this.model.tl3_requirements.penalty_counts.total}}
{{#if this.currentUser.admin}}
{{i18n "admin.user.clear_penalty_history.description"}}
{{/if}}
{{/if}}
{{#if this.currentUser.admin}}
{{i18n "admin.user.activity"}}
{{i18n "created"}}
{{format-date this.model.created_at leaveAgo="true"}}
{{i18n "admin.users.last_emailed"}}
{{format-date this.model.last_emailed_at}}
{{i18n "last_seen"}}
{{format-date this.model.last_seen_at leaveAgo="true"}}
{{i18n "admin.user.like_count"}}
{{this.model.like_given_count}} / {{this.model.like_count}}
{{i18n "admin.user.topics_entered"}}
{{this.model.topics_entered}}
{{i18n "admin.user.post_count"}}
{{this.model.post_count}}
{{#if this.model.can_delete_all_posts}}
{{#if this.model.post_count}}
{{/if}}
{{else}}
{{this.deleteAllPostsExplanation}}
{{/if}}
{{i18n "admin.user.posts_read_count"}}
{{this.model.posts_read_count}}
{{i18n "admin.user.warnings_received_count"}}
{{this.model.warnings_received_count}}
{{i18n "admin.user.flags_given_received_count"}}
{{this.model.flags_given_count}} / {{this.model.flags_received_count}}
{{#if this.model.flags_received_count}}
{{i18n "admin.user.show_flags_received"}}
{{/if}}
{{i18n "admin.user.private_topics_count"}}
{{this.model.private_topics_count}}
{{i18n "admin.user.time_read"}}
{{format-duration this.model.time_read}}
{{i18n "user.invited.days_visited"}}
{{html-safe this.model.days_visited}}
{{i18n "admin.user.post_edits_count" }}
{{if (gt this.model.post_edits_count 0) this.model.post_edits_count "0"}}
{{#if (gt this.model.post_edits_count 0) }}
{{d-icon "far-eye"}}
{{i18n "admin.user.view_edits"}}
{{/if}}
{{#if this.model.single_sign_on_record}}
{{i18n "admin.user.discourse_connect.title"}}
{{#let this.model.single_sign_on_record as |sso|}}
{{i18n "admin.user.discourse_connect.external_id"}}
{{sso.external_id}}
{{#if this.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 this.canAdminCheckEmails}}
{{i18n "admin.user.discourse_connect.external_email"}}
{{#if this.ssoExternalEmail}}
{{this.ssoExternalEmail}}
{{else}}
{{/if}}
{{/if}}
{{i18n "admin.user.discourse_connect.external_avatar_url"}}
{{sso.external_avatar_url}}
{{#if this.canAdminCheckEmails}}
{{i18n "admin.user.discourse_connect.last_payload"}}
{{#if this.ssoLastPayload}}
{{#each this.ssoPayload as |line|}}
{{line}}
{{/each}}
{{else}}
{{/if}}
{{/if}}
{{/let}}
{{/if}}