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.

narrow-banner: Fix empty narrow banner titles with user's full name.

Lauryn Menard024932a489b3
diff --git a/frontend_tests/node_tests/narrow.js b/frontend_tests/node_tests/narrow.js
index d012cac1bfe..ef33fbf1781 100644
--- a/frontend_tests/node_tests/narrow.js
+++ b/frontend_tests/node_tests/narrow.js
@@ -388,7 +388,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {
assert.equal(
$(".empty_feed_notice_main").html(),
empty_narrow_html(
- "translated HTML: You have no private messages with Example Bot yet.",
+ "translated: You have no private messages with Example Bot yet.",
'translated HTML: Why not <a href="#" class="empty_feed_compose_private">start the conversation</a>?',
),
);
@@ -414,7 +414,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {
assert.equal(
$(".empty_feed_notice_main").html(),
empty_narrow_html(
- "translated HTML: You have no private messages with Alice Smith yet.",
+ "translated: You have no private messages with Alice Smith yet.",
'translated HTML: Why not <a href="#" class="empty_feed_compose_private">start the conversation</a>?',
),
);
@@ -487,7 +487,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {
assert.equal(
$(".empty_feed_notice_main").html(),
empty_narrow_html(
- "translated HTML: You have no group private messages with Alice Smith yet.",
+ "translated: You have no group private messages with Alice Smith yet.",
'translated HTML: Why not <a href="#" class="empty_feed_compose_private">start the conversation</a>?',
),
);
@@ -497,9 +497,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {
narrow_banner.show_empty_narrow_message();
assert.equal(
$(".empty_feed_notice_main").html(),
- empty_narrow_html(
- "translated HTML: You haven't received any messages sent by Raymond yet.",
- ),
+ empty_narrow_html("translated: You haven't received any messages sent by Raymond yet."),
);
set_filter([["sender", "[email protected]"]]);
diff --git a/static/js/narrow_banner.js b/static/js/narrow_banner.js
index 0551e8c5211..4d88f6016e2 100644
--- a/static/js/narrow_banner.js
+++ b/static/js/narrow_banner.js
@@ -328,7 +328,7 @@ function pick_empty_narrow_banner() {
};
}
return {
- title: $t_html(
+ title: $t(
{
defaultMessage: "You have no private messages with {person} yet.",
},
@@ -366,7 +366,7 @@ function pick_empty_narrow_banner() {
const sender = people.get_by_email(first_operand);
if (sender) {
return {
- title: $t_html(
+ title: $t(
{
defaultMessage:
"You haven't received any messages sent by {person} yet.",
@@ -398,7 +398,7 @@ function pick_empty_narrow_banner() {
};
}
return {
- title: $t_html(
+ title: $t(
{
defaultMessage: "You have no group private messages with {person} yet.",
},