diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index 094192835c..d8a728a735 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -694,7 +694,7 @@ html_rules: List["Rule"] = [ "templates/corporate/billing.html", "templates/corporate/upgrade.html", # Miscellaneous violations to be cleaned up - "web/templates/user_card_popover_title.hbs", + "web/templates/user_card_popover_avatar.hbs", "web/templates/confirm_dialog/confirm_subscription_invites_warning.hbs", "templates/zerver/reset_confirm.html", "templates/zerver/config_error.html", diff --git a/web/src/user_card_popover.js b/web/src/user_card_popover.js index 02e290ab48..cc95a9f46b 100644 --- a/web/src/user_card_popover.js +++ b/web/src/user_card_popover.js @@ -4,9 +4,9 @@ import $ from "jquery"; import tippy from "tippy.js"; import render_confirm_mute_user from "../templates/confirm_dialog/confirm_mute_user.hbs"; +import render_user_card_popover_avatar from "../templates/user_card_popover_avatar.hbs"; import render_user_card_popover_content from "../templates/user_card_popover_content.hbs"; import render_user_card_popover_manage_menu from "../templates/user_card_popover_manage_menu.hbs"; -import render_user_card_popover_title from "../templates/user_card_popover_title.hbs"; import * as blueslip from "./blueslip"; import * as buddy_data from "./buddy_data"; @@ -335,7 +335,7 @@ function render_user_card_popover( $popover.addClass(get_popover_classname(template_class)); $popover_title.append( - render_user_card_popover_title({ + render_user_card_popover_avatar({ // See the load_medium_avatar comment for important background. user_avatar: people.small_avatar_url_for_person(user), user_is_guest: user.is_guest, diff --git a/web/templates/user_card_popover_title.hbs b/web/templates/user_card_popover_avatar.hbs similarity index 100% rename from web/templates/user_card_popover_title.hbs rename to web/templates/user_card_popover_avatar.hbs