2021-06-17 18:42:31 +02:00
<div id="account-settings" class="settings-section show" data-name="account-and-privacy">
2019-07-10 19:17:26 +02:00
<div class="alert" id="dev-account-settings-status"></div>
2017-04-26 04:52:39 +02:00
<div class="account-settings-form">
2017-07-05 21:54:58 +02:00
<div class="inline-block">
2020-03-30 11:03:10 +02:00
<div id="user_details_section">
2021-06-17 18:42:31 +02:00
<h3 class="inline-block"> {{ t "Account" }} </h3>
2020-03-30 11:03:10 +02:00
<form class="email-change-form grid">
<div class="alert-notification" id="account-settings-status"></div>
2021-06-28 15:51:52 +02:00
<div class="input-group">
2020-03-30 11:03:10 +02:00
<label class="inline-block title"> {{ t "Email" }} </label>
2021-07-27 01:46:21 +02:00
<button id='change_email' type="button" class="button btn-link small rounded inline-block"
2020-03-30 11:03:10 +02:00
{{ # if ( and page_params .realm_email_changes_disabled ( not page_params .is_admin ) ) }} disabled="disabled" {{ / if }} >
{{ page_params .delivery_email }}
2019-06-10 07:38:49 +02:00
<i class="fa fa-pencil"></i>
</button>
2021-02-26 09:50:06 +01:00
<i class="tippy-zulip-tooltip fa fa-question-circle change_email_tooltip settings-info-icon" {{ # if ( or ( not page_params .realm_email_changes_disabled ) page_params .is_admin ) }} style="display: none;" {{ / if }} data-tippy-content=" {{ t 'Email address changes are disabled in this organization.' }} "></i>
2018-02-02 01:04:49 +01:00
</div>
2020-03-30 11:03:10 +02:00
</form>
2018-02-02 01:04:49 +01:00
2020-03-30 11:03:10 +02:00
{{ # if page_params .two_fa_enabled }}
<p for="two_factor_auth" class="inline-block title">
{{ t "Two factor authentication" }} : {{ # if page_params .two_fa_enabled_user }} {{ t "Enabled" }} {{ else }} {{ t "Disabled" }} {{ / if }}
docs: Add missing space to compound verbs “log in”, “set up”, etc.
Noun: backup, checkout, cleanup, login, logout, setup, shutdown, signup,
timeout.
Verb: back up, check out, clean up, log in, log out, set up, shut
down, sign up, time out.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-04-25 23:05:38 +02:00
<a target="_blank" rel="noopener noreferrer" id="two_factor_auth" href="/account/two_factor/" title=" {{ t 'Set up two factor authentication' }} ">[ {{ t "Setup" }} ]</a>
2020-03-30 11:03:10 +02:00
</p>
2018-02-10 14:28:16 +01:00
{{ / if }}
2017-12-24 19:00:29 +01:00
2020-03-30 11:03:10 +02:00
<form class="password-change-form grid">
{{ # if page_params .realm_email_auth_enabled }}
2021-06-28 15:45:47 +02:00
<div>
2020-03-30 11:03:10 +02:00
<label class="inline-block title"> {{ t "Password" }} </label>
<div class="input-group inline-block" id="pw_change_link">
<button id="change_password" type="button" class="change_password_button btn-link small button rounded inline-block" data-dismiss="modal">********<i class="fa fa-pencil"></i></button>
2017-12-24 19:00:29 +01:00
</div>
2020-03-30 11:03:10 +02:00
</div>
{{ / if }}
</form>
2021-06-17 18:42:31 +02:00
<div class="input-group">
<button type="submit" class="button rounded btn-danger" id="user_deactivate_account_button">
{{ t 'Deactivate account' }}
</button>
</div>
2017-07-05 21:54:58 +02:00
</div>
</div>
2021-03-17 13:55:02 +01:00
2021-07-01 16:16:23 +02:00
<div class="form-horizontal" id="privacy_settings_box">
<h3 class="inline-block"> {{ t "Privacy" }} </h3>
<div class="alert-notification privacy-setting-status"></div>
<div class="input-group">
{{ > settings_checkbox
setting_name="presence_enabled"
2021-08-25 13:03:05 +02:00
is_checked=settings_object.presence_enabled
2021-07-03 20:59:22 +02:00
label=settings_label.presence_enabled
2021-08-20 11:11:44 +02:00
help_link="/help/status-and-availability"
prefix="user_"}}
2021-10-03 08:36:36 +02:00
{{ > settings_checkbox
setting_name="send_private_typing_notifications"
is_checked=settings_object.send_private_typing_notifications
label=settings_label.send_private_typing_notifications
}}
{{ # if page_params .development_environment }}
{{ > settings_checkbox
setting_name="send_stream_typing_notifications"
is_checked=settings_object.send_stream_typing_notifications
label=settings_label.send_stream_typing_notifications
}}
2021-10-03 08:53:35 +02:00
{{ > settings_checkbox
setting_name="send_read_receipts"
is_checked=settings_object.send_read_receipts
label=settings_label.send_read_receipts
}}
2021-10-03 08:36:36 +02:00
{{ / if }}
2021-07-01 16:16:23 +02:00
</div>
</div>
2021-04-21 00:46:14 +02:00
<hr class="settings_separator" />
2017-06-13 17:57:33 +02:00
<div class="form-horizontal" id="api_key_button_box">
2018-01-25 02:11:17 +01:00
<h3> {{ t "API key" }} </h3>
2017-07-05 21:54:58 +02:00
<div class="input-group">
2017-06-13 17:57:33 +02:00
<p class="api-key-note">
2021-04-14 03:04:02 +02:00
{{ # tr }}
2017-07-12 22:22:07 +02:00
An API key can be used to programmatically access a Zulip account.
Anyone with access to your API key has the ability to read your messages, send
messages on your behalf, and otherwise impersonate you on Zulip, so you should
2021-04-10 05:53:13 +02:00
guard your API key as carefully as you guard your password. <br />
2017-07-12 22:22:07 +02:00
We recommend creating bots and using the bots' accounts and API keys to access
the Zulip API, unless the task requires access to your account.
2017-06-13 17:57:33 +02:00
{{ / tr }}
</p>
<button class="button rounded" id="api_key_button"> {{ t "Show/change your API key" }} </button>
</div>
</div>
2019-08-12 16:43:20 +02:00
<!-- Render /settings/api_key_modal.hbs after #api_key_button is clicked
to avoid password being inserted by password manager too aggressively. -->
2017-04-26 04:52:39 +02:00
</div>
2016-10-05 02:23:09 +02:00
</div>