Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
temaplate: Separate stream and user group tabs in user profile modal.
m-e-l-u-h-a-ne10a315efd67
diff --git a/static/js/popovers.js b/static/js/popovers.jsindex 9004317eb14..0aff1314874 100644--- a/static/js/popovers.js+++ b/static/js/popovers.js@@ -429,27 +429,16 @@ export function show_user_profile(user) {{label: $t({defaultMessage: "User groups"}), key: "groups-tab"},],callback(name, key) {- function hide_profile_tab() {- $("#profile-tab").hide();- $(".subscription-group-list").show();- }+ $(".tabcontent").hide();+ $("#" + key).show();switch (name) {case "User groups":- hide_profile_tab();- $("#streams-tab").hide();render_user_group_list(groups_of_user, user);break;case "Streams":- hide_profile_tab();- $("#groups-tab").hide();render_user_stream_list(user_streams, user);break;- default:- // default is profile section- $(".subscription-group-list").hide();- break;}- $("#" + key).show();},};diff --git a/static/styles/popovers.css b/static/styles/popovers.cssindex 0388d3c510b..d9854f5b1af 100644--- a/static/styles/popovers.css+++ b/static/styles/popovers.css@@ -362,7 +362,8 @@ ul {margin-bottom: 20px;}- .subscription-group-list {+ .subscription-group-list,+ .subscription-stream-list {position: relative;border: 1px solid hsl(0, 0%, 83%);border-radius: 4px;diff --git a/static/templates/user_profile_modal.hbs b/static/templates/user_profile_modal.hbsindex 267018fc863..31cfd96151a 100644--- a/static/templates/user_profile_modal.hbs+++ b/static/templates/user_profile_modal.hbs@@ -64,12 +64,14 @@</div></div>- <div class="subscription-group-list">- <div class="tabcontent" id="streams-tab">+ <div class="tabcontent" id="streams-tab">+ <div class="subscription-stream-list"><table class="user-stream-list" data-empty="{{t 'No stream subscriptions.'}}"></table></div>+ </div>- <div class="tabcontent" id="groups-tab">+ <div class="tabcontent" id="groups-tab">+ <div class="subscription-group-list"><table class="user-group-list" data-empty="{{t 'No user group subscriptions.'}}"></table></div></div>