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.

navbar: Use `_html` variables in template.

apoorvapendseab486663582d
diff --git a/web/src/filter.ts b/web/src/filter.ts
index f22bccf0b9a..13156ebfb93 100644
--- a/web/src/filter.ts
+++ b/web/src/filter.ts
@@ -23,7 +23,7 @@ import * as util from "./util.ts";
type IconData = {
title?: string | undefined;
- html_title?: string | undefined;
+ title_html?: string | undefined;
is_spectator: boolean;
} & (
| {
@@ -1339,7 +1339,7 @@ export class Filter {
add_icon_data(context: {
title?: string;
- html_title?: string;
+ title_html?: string;
description?: string | undefined;
link?: string | undefined;
is_spectator: boolean;
diff --git a/web/src/message_view_header.ts b/web/src/message_view_header.ts
index 5de8ffc3ff5..85ba6bf5648 100644
--- a/web/src/message_view_header.ts
+++ b/web/src/message_view_header.ts
@@ -20,7 +20,7 @@ import type {StreamSubscription} from "./sub_store.ts";
type MessageViewHeaderContext = {
title?: string | undefined;
- html_title?: string | undefined;
+ title_html?: string | undefined;
description?: string;
link?: string;
is_spectator?: boolean;
@@ -122,7 +122,7 @@ function get_message_view_header_context(filter: Filter | undefined): MessageVie
context = {
...context,
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.
icon: undefined,
zulip_icon: undefined,
diff --git a/web/templates/navbar_icon_and_title.hbs b/web/templates/navbar_icon_and_title.hbs
index 632c2d709c2..c82bdd4eef3 100644
--- a/web/templates/navbar_icon_and_title.hbs
+++ b/web/templates/navbar_icon_and_title.hbs
@@ -6,8 +6,8 @@
{{#if title}}
<span class="message-header-navbar-title">{{title}}</span>
{{/if}}
-{{#if html_title}}
-<span class="message-header-navbar-title">{{{html_title}}}</span>
+{{#if title_html}}
+<span class="message-header-navbar-title">{{{title_html}}}</span>
{{/if}}
{{#if stream}}
{{#if stream.is_archived}}