Files
zulip/web/templates/confirm_dialog/confirm_deactivate_user.hbs
whilstsomebody 22341c18db popover: Hide unexpired invitation count when it is 0.
In deactivate user confirm dialog, we hide the count of
unexpired invitations of a user when the count is zero.

Fixes: #34265
2025-04-02 13:15:06 -07:00

45 lines
1.6 KiB
Handlebars

<p>
{{#tr}}
When you deactivate <z-user></z-user>, they will be immediately logged out.
{{#*inline "z-user"}}<strong>{{username}}</strong>{{#if email}} &lt;{{email}}&gt;{{/if}}{{/inline}}
{{/tr}}
</p>
<p>{{t "Their password will be cleared from our systems, and any bots they maintain will be disabled." }}</p>
<p>
{{#if number_of_invites_by_user}}
{{#tr}}
<strong>{username}</strong> has {number_of_invites_by_user, plural, one {# unexpired invitation} other {# unexpired invitations}}.
{{/tr}}
{{/if}}
{{#if bots_owned_by_user}}
{{t "They administer the following bots:"}}
<ul>
{{#each bots_owned_by_user}}
<li>{{this.full_name}}</li>
{{/each}}
</ul>
{{/if}}
</p>
<label class="checkbox">
<input type="checkbox" class="send_email" />
<span class="rendered-checkbox"></span>
{{t "Notify this user by email?" }}
</label>
<div class="email_field">
<p class="border-top">
<strong>{{t "Subject" }}:</strong>
{{t "Notification of account deactivation on {realm_name}" }}
</p>
<div class="email-body">
<p>
{{#tr}}
Your Zulip account on <z-link></z-link> has been deactivated,
and you will no longer be able to log in.
{{#*inline "z-link"}}<a href="{{realm_url}}">{{realm_url}}</a>{{/inline}}
{{/tr}}
</p>
<p>{{t "The administrators provided the following comment:" }}</p>
<textarea class="email_field_textarea settings_textarea" rows="8" maxlength="2000"></textarea>
</div>
</div>