mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
navbar: Use _html
variables in template.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
83cfff0ad0
commit
ab48666358
@@ -23,7 +23,7 @@ import * as util from "./util.ts";
|
|||||||
|
|
||||||
type IconData = {
|
type IconData = {
|
||||||
title?: string | undefined;
|
title?: string | undefined;
|
||||||
html_title?: string | undefined;
|
title_html?: string | undefined;
|
||||||
is_spectator: boolean;
|
is_spectator: boolean;
|
||||||
} & (
|
} & (
|
||||||
| {
|
| {
|
||||||
@@ -1339,7 +1339,7 @@ export class Filter {
|
|||||||
|
|
||||||
add_icon_data(context: {
|
add_icon_data(context: {
|
||||||
title?: string;
|
title?: string;
|
||||||
html_title?: string;
|
title_html?: string;
|
||||||
description?: string | undefined;
|
description?: string | undefined;
|
||||||
link?: string | undefined;
|
link?: string | undefined;
|
||||||
is_spectator: boolean;
|
is_spectator: boolean;
|
||||||
|
@@ -20,7 +20,7 @@ import type {StreamSubscription} from "./sub_store.ts";
|
|||||||
|
|
||||||
type MessageViewHeaderContext = {
|
type MessageViewHeaderContext = {
|
||||||
title?: string | undefined;
|
title?: string | undefined;
|
||||||
html_title?: string | undefined;
|
title_html?: string | undefined;
|
||||||
description?: string;
|
description?: string;
|
||||||
link?: string;
|
link?: string;
|
||||||
is_spectator?: boolean;
|
is_spectator?: boolean;
|
||||||
@@ -122,7 +122,7 @@ function get_message_view_header_context(filter: Filter | undefined): MessageVie
|
|||||||
context = {
|
context = {
|
||||||
...context,
|
...context,
|
||||||
title: undefined,
|
title: undefined,
|
||||||
html_title: stream_name_with_privacy_symbol_html,
|
title_html: stream_name_with_privacy_symbol_html,
|
||||||
// We don't want to show an initial icon here.
|
// We don't want to show an initial icon here.
|
||||||
icon: undefined,
|
icon: undefined,
|
||||||
zulip_icon: undefined,
|
zulip_icon: undefined,
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
{{#if title}}
|
{{#if title}}
|
||||||
<span class="message-header-navbar-title">{{title}}</span>
|
<span class="message-header-navbar-title">{{title}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if html_title}}
|
{{#if title_html}}
|
||||||
<span class="message-header-navbar-title">{{{html_title}}}</span>
|
<span class="message-header-navbar-title">{{{title_html}}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if stream}}
|
{{#if stream}}
|
||||||
{{#if stream.is_archived}}
|
{{#if stream.is_archived}}
|
||||||
|
Reference in New Issue
Block a user