Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream-settings: Add info to can_remove_subscribers_group label.

Sahil Batra90ae342af2b5
diff --git a/tools/lib/capitalization.py b/tools/lib/capitalization.py
index efc49a0acac..159b7345a77 100644
--- a/tools/lib/capitalization.py
+++ b/tools/lib/capitalization.py
@@ -175,6 +175,8 @@ IGNORED_PHRASES = [
r"hours",
r"days",
r"weeks",
+ # Used in "Who can unsubscribe others from this channel" label.
+ r"in addition to organization administrators",
]
# Sort regexes in descending order of their lengths. As a result, the
diff --git a/web/templates/settings/group_setting_value_pill_input.hbs b/web/templates/settings/group_setting_value_pill_input.hbs
index d3eea14a1c1..8ec1223207c 100644
--- a/web/templates/settings/group_setting_value_pill_input.hbs
+++ b/web/templates/settings/group_setting_value_pill_input.hbs
@@ -1,5 +1,8 @@
<div class="input-group">
- <label class="group-setting-label">{{label}}</label>
+ <label class="group-setting-label">
+ {{label}}
+ {{#if label_parens_text}}(<i>{{label_parens_text}}</i>){{/if}}
+ </label>
<div class="pill-container person_picker prop-element" id="{{#if prefix}}{{prefix}}{{else}}id_{{/if}}{{setting_name}}" data-setting-widget-type="group-setting-type">
<div class="input" contenteditable="true" data-placeholder="{{t 'Add roles, groups or users' }}">
{{~! Squash whitespace so that placeholder is displayed when empty. ~}}
diff --git a/web/templates/stream_settings/stream_types.hbs b/web/templates/stream_settings/stream_types.hbs
index 094fbd0ea50..c55649c3b60 100644
--- a/web/templates/stream_settings/stream_types.hbs
+++ b/web/templates/stream_settings/stream_types.hbs
@@ -69,6 +69,7 @@
{{> ../settings/group_setting_value_pill_input
setting_name="can_remove_subscribers_group"
label=(t 'Who can unsubscribe others from this channel')
+ label_parens_text=(t 'in addition to organization administrators')
prefix=prefix }}
{{#if (or is_owner is_stream_edit)}}