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_types: Remove new-style class in stream_types.hbs.

YashRE4253a5942ab3d6
diff --git a/static/styles/subscriptions.css b/static/styles/subscriptions.css
index 07b8afce7e8..117b051fc96 100644
--- a/static/styles/subscriptions.css
+++ b/static/styles/subscriptions.css
@@ -1086,6 +1086,13 @@
box-sizing: border-box;
}
+#stream_privacy_modal .stream-message-retention-days-input input[type="text"] {
+ border-radius: 5px;
+ box-shadow: none;
+ margin: 0;
+ height: inherit;
+}
+
@media (width < $lg_min) {
.subscriptions-container {
max-width: 95%;
diff --git a/static/templates/stream_settings/stream_types.hbs b/static/templates/stream_settings/stream_types.hbs
index dfaaa30a3bf..fc64b570b3b 100644
--- a/static/templates/stream_settings/stream_types.hbs
+++ b/static/templates/stream_settings/stream_types.hbs
@@ -1,64 +1,62 @@
-<div class="new-style">
- <div class="input-group stream-privacy-values">
- <div class="alert stream-privacy-status"></div>
- <h4>{{t 'Who can access the stream?'}}
- {{> ../help_link_widget link="/help/stream-permissions" }}
- </h4>
- {{#each stream_privacy_policy_values}}
- <div class="radio-input-parent">
- <label class="radio">
- <input type="radio" name="privacy" value="{{ this.code }}" {{#if (eq this.code ../stream_privacy_policy) }}checked{{/if}} />
- <b>{{ this.name }}:</b> {{ this.description }}
- </label>
- </div>
- {{/each}}
+<div class="input-group stream-privacy-values">
+ <div class="alert stream-privacy-status"></div>
+ <h4>{{t 'Who can access the stream?'}}
+ {{> ../help_link_widget link="/help/stream-permissions" }}
+ </h4>
+ {{#each stream_privacy_policy_values}}
+ <div class="radio-input-parent">
+ <label class="radio">
+ <input type="radio" name="privacy" value="{{ this.code }}" {{#if (eq this.code ../stream_privacy_policy) }}checked{{/if}} />
+ <b>{{ this.name }}:</b> {{ this.description }}
+ </label>
</div>
+ {{/each}}
+</div>
- <div class="input-group">
- <h4>{{t 'Who can post to the stream?'}}
- {{> ../help_link_widget link="/help/stream-sending-policy" }}
- </h4>
- {{#each stream_post_policy_values}}
- <div class="radio-input-parent">
- <label class="radio">
- <input type="radio" name="stream-post-policy" value="{{ this.code }}" {{#if (eq this.code ../stream_post_policy) }}checked{{/if}} />
- {{ this.description }}
- </label>
- </div>
- {{/each}}
+<div class="input-group">
+ <h4>{{t 'Who can post to the stream?'}}
+ {{> ../help_link_widget link="/help/stream-sending-policy" }}
+ </h4>
+ {{#each stream_post_policy_values}}
+ <div class="radio-input-parent">
+ <label class="radio">
+ <input type="radio" name="stream-post-policy" value="{{ this.code }}" {{#if (eq this.code ../stream_post_policy) }}checked{{/if}} />
+ {{ this.description }}
+ </label>
</div>
+ {{/each}}
+</div>
- {{#if (or is_owner is_stream_edit)}}
- <div>
- <h4>{{t "Message retention for stream" }}
- {{> ../help_link_widget link="/help/message-retention-policy" }}
- </h4>
+{{#if (or is_owner is_stream_edit)}}
+<div>
+ <h4>{{t "Message retention for stream" }}
+ {{> ../help_link_widget link="/help/message-retention-policy" }}
+ </h4>
- {{> ../settings/upgrade_tip_widget}}
+ {{> ../settings/upgrade_tip_widget}}
- <div class="input-group inline-block message-retention-setting-group">
- <div class="dropdown-title">{{t "Message retention period" }}
- <i class="fa fa-info-circle settings-info-icon stream_message_retention_tooltip tippy-zulip-tooltip" aria-hidden="true" data-tippy-content="{{t 'Only owners can change stream message retention policy.' }}"></i>
- </div>
- <select name="stream_message_retention_setting"
- class="stream_message_retention_setting" class="prop-element"
- {{#if disable_message_retention_setting}}disabled{{/if}}>
- <option value="realm_default">{{#tr}}Use organization level settings {org_level_message_retention_setting}{{/tr}}</option>
- <option value="unlimited">{{t 'Retain forever' }}</option>
- <option value="retain_for_period">{{t 'Retain for N days after posting' }}</option>
- </select>
+ <div class="input-group inline-block message-retention-setting-group">
+ <div class="dropdown-title">{{t "Message retention period" }}
+ <i class="fa fa-info-circle settings-info-icon stream_message_retention_tooltip tippy-zulip-tooltip" aria-hidden="true" data-tippy-content="{{t 'Only owners can change stream message retention policy.' }}"></i>
+ </div>
+ <select name="stream_message_retention_setting"
+ class="stream_message_retention_setting" class="prop-element"
+ {{#if disable_message_retention_setting}}disabled{{/if}}>
+ <option value="realm_default">{{#tr}}Use organization level settings {org_level_message_retention_setting}{{/tr}}</option>
+ <option value="unlimited">{{t 'Retain forever' }}</option>
+ <option value="retain_for_period">{{t 'Retain for N days after posting' }}</option>
+ </select>
- <div class="dependent-inline-block stream-message-retention-days-input">
- <label class="inline-block">
- {{t 'N' }}:
- </label>
- <input type="text" autocomplete="off"
- name="stream-message-retention-days"
- class="stream-message-retention-days"
- value="{{ stream_message_retention_days }}"
- {{#if disable_message_retention_setting}}disabled{{/if}}/>
- </div>
+ <div class="dependent-inline-block stream-message-retention-days-input">
+ <label class="inline-block">
+ {{t 'N' }}:
+ </label>
+ <input type="text" autocomplete="off"
+ name="stream-message-retention-days"
+ class="stream-message-retention-days"
+ value="{{ stream_message_retention_days }}"
+ {{#if disable_message_retention_setting}}disabled{{/if}}/>
</div>
</div>
- {{/if}}
</div>
+{{/if}}