Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Add deactivated user indicator in the profile header.
Vector734a4b8dff99b6
diff --git a/web/src/user_profile.js b/web/src/user_profile.jsindex 5c2ad5ee897..bfc51088827 100644--- a/web/src/user_profile.js+++ b/web/src/user_profile.js@@ -352,6 +352,7 @@ export function show_user_profile(user, default_tab_key = "profile-tab") {!people.is_my_user_id(user.user_id);const args = {user_id: user.user_id,+ is_active: people.is_person_active(user.user_id),full_name: user.full_name,email: user.delivery_email,profile_data,diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 70a1d9ff9f0..47fc7059266 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -510,6 +510,11 @@ ul {font-size: 18px;}+ .deactivated-user-icon {+ margin: -1px;+ vertical-align: middle;+ }+.user_profile_name {margin: 0 10px;}diff --git a/web/templates/user_profile_modal.hbs b/web/templates/user_profile_modal.hbsindex dafc8a50d83..6cfa6b2ea64 100644--- a/web/templates/user_profile_modal.hbs+++ b/web/templates/user_profile_modal.hbs@@ -3,9 +3,15 @@<div class="modal__container new-style" role="dialog" aria-modal="true" aria-labelledby="dialog_title"><div class="modal__header">{{#unless is_bot}}- <div class="tippy-zulip-tooltip" data-tippy-content="{{last_seen}}">- <span class="{{user_circle_class}} user_circle user_profile_presence"></span>- </div>+ {{#if is_active}}+ <div class="tippy-zulip-tooltip" data-tippy-content="{{last_seen}}">+ <span class="{{user_circle_class}} user_circle user_profile_presence"></span>+ </div>+ {{else}}+ <div>+ <i class="fa fa-ban deactivated-user-icon tippy-zulip-tooltip" data-tippy-content="Deactivated user"></i>+ </div>+ {{/if}}{{/unless}}<h1 class="modal__title user_profile_name_heading" id="name">{{#if is_bot}}