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.

template: Rename `stream_list_item.hbs` to `channel_list_item.hbs`.

Pratik Chanda022dea719bc2
diff --git a/web/src/channel_folders_ui.ts b/web/src/channel_folders_ui.ts
index 59de0b26846..187df28b71e 100644
--- a/web/src/channel_folders_ui.ts
+++ b/web/src/channel_folders_ui.ts
@@ -3,8 +3,8 @@ import assert from "minimalistic-assert";
import type * as tippy from "tippy.js";
import * as z from "zod/mini";
+import render_channel_list_item from "../templates/channel_list_item.hbs";
import render_confirm_archive_channel_folder from "../templates/confirm_dialog/confirm_archive_channel_folder.hbs";
-import render_stream_list_item from "../templates/stream_list_item.hbs";
import render_create_channel_folder_modal from "../templates/stream_settings/create_channel_folder_modal.hbs";
import render_edit_channel_folder_modal from "../templates/stream_settings/edit_channel_folder_modal.hbs";
@@ -195,7 +195,7 @@ export function handle_archiving_channel_folder(folder_id: number): void {
}
function format_channel_item_html(stream: StreamSubscription): string {
- return render_stream_list_item({
+ return render_channel_list_item({
name: stream.name,
stream_id: stream.stream_id,
stream_color: stream.color,
diff --git a/web/src/user_profile.ts b/web/src/user_profile.ts
index 04048050a2b..07c22406ab7 100644
--- a/web/src/user_profile.ts
+++ b/web/src/user_profile.ts
@@ -6,12 +6,12 @@ import assert from "minimalistic-assert";
import type * as tippy from "tippy.js";
import * as z from "zod/mini";
+import render_channel_list_item from "../templates/channel_list_item.hbs";
import render_profile_access_error_model from "../templates/profile_access_error_modal.hbs";
import render_admin_human_form from "../templates/settings/admin_human_form.hbs";
import render_edit_bot_form from "../templates/settings/edit_bot_form.hbs";
import render_settings_edit_embedded_bot_service from "../templates/settings/edit_embedded_bot_service.hbs";
import render_settings_edit_outgoing_webhook_service from "../templates/settings/edit_outgoing_webhook_service.hbs";
-import render_stream_list_item from "../templates/stream_list_item.hbs";
import render_user_custom_profile_fields from "../templates/user_custom_profile_fields.hbs";
import render_user_full_name from "../templates/user_full_name.hbs";
import render_user_group_list_item from "../templates/user_group_list_item.hbs";
@@ -300,7 +300,7 @@ function format_user_stream_list_item_html(stream: StreamSubscription, user: Use
people.is_my_user_id(user.user_id) && stream.invite_only;
const show_last_user_in_private_stream_unsub_tooltip =
stream.invite_only && peer_data.get_subscriber_count(stream.stream_id) === 1;
- return render_stream_list_item({
+ return render_channel_list_item({
name: stream.name,
stream_id: stream.stream_id,
stream_color: stream.color,
diff --git a/web/templates/stream_list_item.hbs b/web/templates/channel_list_item.hbs
similarity index 100%
rename from web/templates/stream_list_item.hbs
rename to web/templates/channel_list_item.hbs