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: Update `selected_stream_title` file.

sujal shah56b00c423994
diff --git a/web/templates/stream_settings/selected_stream_title.hbs b/web/templates/stream_settings/selected_stream_title.hbs
index a0641d49cf2..0b9405a9e3e 100644
--- a/web/templates/stream_settings/selected_stream_title.hbs
+++ b/web/templates/stream_settings/selected_stream_title.hbs
@@ -1,7 +1,6 @@
-<a class="tippy-zulip-delayed-tooltip" data-tooltip-template-id="view-stream-tooltip-template" data-tippy-placement="top" href="{{preview_url}}">
+<a {{#if preview_url}}class="tippy-zulip-delayed-tooltip" data-tooltip-template-id="view-stream-tooltip-template" data-tippy-placement="top" href="{{preview_url}}{{/if}}">
{{> stream_privacy_icon
invite_only=sub.invite_only
- is_web_public=sub.is_web_public
- color=title_icon_color }}
+ is_web_public=sub.is_web_public }}
<span class="stream-name-title">{{sub.name}}</span>
</a>
diff --git a/web/templates/stream_settings/stream_privacy_icon.hbs b/web/templates/stream_settings/stream_privacy_icon.hbs
index 1e9f4d8b596..1008b44c20d 100644
--- a/web/templates/stream_settings/stream_privacy_icon.hbs
+++ b/web/templates/stream_settings/stream_privacy_icon.hbs
@@ -1,14 +1,14 @@
{{! This controls whether the swatch next to streams in the stream edit page has a lock icon. }}
{{#if invite_only}}
-<div class="large-icon" style="color: {{color}}">
+<div class="large-icon" {{#if title_icon_color}}style="color: {{title_icon_color}}{{/if}}">
<i class="zulip-icon zulip-icon-lock" aria-hidden="true"></i>
</div>
{{else if is_web_public}}
-<div class="large-icon" style="color: {{color}}">
+<div class="large-icon" {{#if title_icon_color}}style="color: {{title_icon_color}}{{/if}}">
<i class="zulip-icon zulip-icon-globe" aria-hidden="true"></i>
</div>
{{else}}
-<div class="large-icon" style="color: {{color}}">
+<div class="large-icon" {{#if title_icon_color}}style="color: {{title_icon_color}}{{/if}}">
<i class="zulip-icon zulip-icon-hashtag" aria-hidden="true"></i>
</div>
{{/if}}