Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream settings: Improve stream permissions description in settings.
m-e-l-u-h-a-n66cf0ae9ff77
diff --git a/static/styles/subscriptions.css b/static/styles/subscriptions.cssindex 9ad52eedf00..5d116dd031e 100644--- a/static/styles/subscriptions.css+++ b/static/styles/subscriptions.css@@ -201,6 +201,7 @@}.stream_setting_subsection_title {+ display: inline-block;font-size: 1.5em;line-height: 1.5;margin: 10px 0 0 0;@@ -843,7 +844,8 @@}}- .stream-header {+ .stream-header,+ .stream_setting_subsection_header {white-space: nowrap;.stream-name {@@ -867,7 +869,6 @@.button-group {float: right;- margin-top: -5px;.deactivate {margin-right: 3px;@@ -924,10 +925,13 @@.subscription-type {margin-bottom: 10px;- opacity: 0.5;.subscription-type-text {display: inline;+ ul {+ margin: 0 0 10px 14px;+ list-style-type: unset;+ }}b {@@ -1149,10 +1153,16 @@}@media (width < $sm_min) {- #subscription_overlay .subscription_settings .button-group {- display: block;- float: right;- margin-top: 10px;+ #subscription_overlay .subscription_settings {+ .button-group {+ display: block;+ float: right;+ margin-top: 10px;+ }++ .stream-header .button-group {+ margin-top: -5px;+ }}#subscription_overlay .subscription_settings .stream_change_property_info {diff --git a/static/templates/subscription_settings.hbs b/static/templates/subscription_settings.hbsindex f6d239c48e1..0f1a16310d3 100644--- a/static/templates/subscription_settings.hbs+++ b/static/templates/subscription_settings.hbs@@ -37,13 +37,24 @@rendered_description=rendered_description}}</div>+ <div class="stream_setting_subsection_header">+ <h3 class="stream_setting_subsection_title">+ {{t "Stream permissions" }}+ </h3>+ {{#if can_change_stream_permissions}}+ <div class="button-group">+ <a class="change-stream-privacy button rounded small btn-warning" role="button">+ <i class="fa fa-pencil" aria-hidden="true"></i>+ </a>+ </div>+ {{/if}}+ </div><div class="subscription-type"><div class="subscription-type-text">{{> subscription_typestream_post_policy_values=../stream_post_policy_valuesmessage_retention_text=../message_retention_text}}</div>- <a class="change-stream-privacy" {{#unless can_change_stream_permissions}}style="display: none;"{{/unless}}>[{{t "Change" }}]</a></div>{{/with}}<div class="stream-email-box" {{#unless sub.email_address}}style="display: none;"{{/unless}}>diff --git a/static/templates/subscription_type.hbs b/static/templates/subscription_type.hbsindex e4a560e8f4c..f607c15afe9 100644--- a/static/templates/subscription_type.hbs+++ b/static/templates/subscription_type.hbs@@ -1,29 +1,45 @@-{{#if invite_only}}- {{#tr}}- This is a <z-icon></z-icon> <b>private stream</b>. Only people who have been invited can access its content, but any member of the stream can invite others.- {{#*inline "z-icon"}}<span class="fa fa-lock" aria-hidden="true"></span>{{/inline}}- {{/tr}}- {{#if history_public_to_subscribers}}{{t 'New members can view complete message history.' }}- {{else}}{{t 'New members can only see messages sent after they join.' }}- {{/if}}+<ul>+ {{#if invite_only}}+ <li>+ {{#tr}}+ This is a <z-icon></z-icon> <b>private stream</b>. Only people who have been invited can access its content, but any member of the stream can invite others.+ {{#*inline "z-icon"}}<span class="fa fa-lock" aria-hidden="true"></span>{{/inline}}+ {{/tr}}+ </li>+ <li>+ {{#if history_public_to_subscribers}}{{t 'New members can view complete message history.' }}+ {{else}}{{t 'New members can only see messages sent after they join.' }}+ {{/if}}+ </li>{{else if is_web_public}}- {{#tr}}- This is a <z-icon></z-icon> <b>web public stream</b>. Any member of the organization can join without an invitation and anyone on the internet can read the content published.- {{#*inline "z-icon"}}<i class="fa fa-globe" aria-hidden="true"></i>{{/inline}}- {{/tr}}-{{else}}- {{#tr}}- This is a <z-icon></z-icon> <b>public stream</b>. Any member of the organization can join without an invitation.- {{#*inline "z-icon"}}<i class="hash" aria-hidden="true"></i>{{/inline}}- {{/tr}}-{{/if}}-{{#if (eq stream_post_policy stream_post_policy_values.admins.code)}}-{{t 'Only organization administrators can post.'}}-{{else if (eq stream_post_policy stream_post_policy_values.moderators.code)}}-{{t 'Only organization administrators and moderators can post.'}}-{{else if (eq stream_post_policy stream_post_policy_values.non_new_members.code)}}-{{t 'Only organization full members can post.'}}-{{else}}-{{t 'All stream members can post.'}}-{{/if}}-{{message_retention_text}}+ <li>+ {{#tr}}+ This is a <z-icon></z-icon> <b>web public stream</b>. Any member of the organization can join without an invitation and anyone on the internet can read the content published.+ {{#*inline "z-icon"}}<i class="fa fa-globe" aria-hidden="true"></i>{{/inline}}+ {{/tr}}+ </li>+ {{else}}+ <li>+ {{#tr}}+ This is a <z-icon></z-icon> <b>public stream</b>. Any member of the organization can join without an invitation.+ {{#*inline "z-icon"}}<i class="hash" aria-hidden="true"></i>{{/inline}}+ {{/tr}}+ </li>+ {{/if}}+ <li>+ {{#if (eq stream_post_policy stream_post_policy_values.admins.code)}}+ {{t 'Only organization administrators can post.'}}+ {{else if (eq stream_post_policy stream_post_policy_values.moderators.code)}}+ {{t 'Only organization administrators and moderators can post.'}}+ {{else if (eq stream_post_policy stream_post_policy_values.non_new_members.code)}}+ {{t 'Only organization full members can post.'}}+ {{else}}+ {{t 'All stream members can post.'}}+ {{/if}}+ </li>+ {{#if message_retention_text}}+ <li>+ {{message_retention_text}}+ </li>+ {{/if}}+</ul>