empty_feed_notice: Use _html variables in template.

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
This commit is contained in:
apoorvapendse
2025-07-30 14:18:12 +05:30
committed by Tim Abbott
parent 370e6765f8
commit 83cfff0ad0
3 changed files with 6 additions and 6 deletions

View File

@@ -18,9 +18,9 @@ export type NarrowBannerData = {
export function narrow_error(narrow_banner_data: NarrowBannerData): string {
const title = narrow_banner_data.title;
const html = narrow_banner_data.html;
const notice_html = narrow_banner_data.html;
const search_data = narrow_banner_data.search_data;
const empty_feed_notice = render_empty_feed_notice({title, html, search_data});
const empty_feed_notice = render_empty_feed_notice({title, notice_html, search_data});
return empty_feed_notice;
}

View File

@@ -13,9 +13,9 @@
{{/each}}
</div>
{{/if}}
{{else if html}}
{{else if notice_html}}
<div class="empty-feed-notice-description">
{{{ html }}}
{{{ notice_html }}}
</div>
{{/if}}
</div>

View File

@@ -54,10 +54,10 @@ mock_esm("../src/spectators", {
login_to_access() {},
});
function empty_narrow_html(title, html, search_data) {
function empty_narrow_html(title, notice_html, search_data) {
const opts = {
title,
html,
notice_html,
search_data,
};
return require("../templates/empty_feed_notice.hbs")(opts);