decorated_channels: Present names in DOM nodes.

This commit is contained in:
Karl Stolley
2025-04-22 12:40:49 -05:00
committed by Tim Abbott
parent 3671a6a39c
commit d5822a04be
2 changed files with 5 additions and 5 deletions

View File

@@ -24,7 +24,7 @@
{{#if stream}} {{#if stream}}
{{> inline_decorated_channel_name stream=stream show_colored_icon=true}} {{> inline_decorated_channel_name stream=stream show_colored_icon=true}}
{{else if is_direct_message}} {{else if is_direct_message}}
<i class="zulip-icon zulip-icon-users channel-privacy-type-icon"></i> {{name}} <i class="zulip-icon zulip-icon-users channel-privacy-type-icon"></i> <span class="decorated-dm-name">{{name}}</span>
{{else if is_setting_disabled}} {{else if is_setting_disabled}}
<span class="setting-disabled-option"><i class="setting-disabled-option-icon fa fa-ban" aria-hidden="true"></i>{{t "Disable" }}</span> <span class="setting-disabled-option"><i class="setting-disabled-option-icon fa fa-ban" aria-hidden="true"></i>{{t "Disable" }}</span>
{{else}} {{else}}

View File

@@ -1,10 +1,10 @@
{{! This controls whether the swatch next to streams in the left sidebar has a lock icon. }} {{! This controls whether the swatch next to streams in the left sidebar has a lock icon. }}
{{~#if stream.is_archived ~}} {{~#if stream.is_archived ~}}
<i class="zulip-icon zulip-icon-archive channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}} <i class="zulip-icon zulip-icon-archive channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> <span class="decorated-channel-name">{{stream.name ~}}</span>
{{~ else if stream.invite_only ~}} {{~ else if stream.invite_only ~}}
<i class="zulip-icon zulip-icon-lock channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}} <i class="zulip-icon zulip-icon-lock channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> <span class="decorated-channel-name">{{stream.name ~}}</span>
{{~ else if stream.is_web_public ~}} {{~ else if stream.is_web_public ~}}
<i class="zulip-icon zulip-icon-globe channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}} <i class="zulip-icon zulip-icon-globe channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> <span class="decorated-channel-name">{{stream.name ~}}</span>
{{~ else ~}} {{~ else ~}}
<i class="zulip-icon zulip-icon-hashtag channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}} <i class="zulip-icon zulip-icon-hashtag channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> <span class="decorated-channel-name">{{stream.name ~}}</span>
{{~/if~}} {{~/if~}}