mirror of https://github.com/zulip/zulip.git
stream_settings: Update `selected_stream_title` file.
Before it was necessary to pass `preview_url` add `title_icon_color`, But now they are optional parameters.
This commit is contained in:
parent
872d85daf6
commit
56b00c4239
|
@ -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
|
{{> stream_privacy_icon
|
||||||
invite_only=sub.invite_only
|
invite_only=sub.invite_only
|
||||||
is_web_public=sub.is_web_public
|
is_web_public=sub.is_web_public }}
|
||||||
color=title_icon_color }}
|
|
||||||
<span class="stream-name-title">{{sub.name}}</span>
|
<span class="stream-name-title">{{sub.name}}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{{! This controls whether the swatch next to streams in the stream edit page has a lock icon. }}
|
{{! This controls whether the swatch next to streams in the stream edit page has a lock icon. }}
|
||||||
{{#if invite_only}}
|
{{#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>
|
<i class="zulip-icon zulip-icon-lock" aria-hidden="true"></i>
|
||||||
</div>
|
</div>
|
||||||
{{else if is_web_public}}
|
{{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>
|
<i class="zulip-icon zulip-icon-globe" aria-hidden="true"></i>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{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>
|
<i class="zulip-icon zulip-icon-hashtag" aria-hidden="true"></i>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue