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.

settings: Convert name to pills in custom emoji section.

sujal shah8cc425206211
diff --git a/web/src/settings_emoji.ts b/web/src/settings_emoji.ts
index 2327eb35c9e..776bd01144a 100644
--- a/web/src/settings_emoji.ts
+++ b/web/src/settings_emoji.ts
@@ -126,12 +126,15 @@ export function populate_emoji(): void {
name: "emoji_list",
get_item: ListWidget.default_get_item,
modifier_html(item) {
+ const author = item.author
+ ? {...item.author, is_active: people.is_person_active(item.author_id)}
+ : "";
return render_admin_emoji_list({
emoji: {
name: item.name,
display_name: item.name.replaceAll("_", " "),
source_url: item.source_url,
- author: item.author ?? "",
+ author,
can_delete_emoji: can_delete_emoji(item),
},
});
diff --git a/web/templates/settings/admin_emoji_list.hbs b/web/templates/settings/admin_emoji_list.hbs
index 40e86f4e008..f2ffeb19113 100644
--- a/web/templates/settings/admin_emoji_list.hbs
+++ b/web/templates/settings/admin_emoji_list.hbs
@@ -12,7 +12,9 @@
</td>
<td>
{{#if author}}
- <span class="emoji_author">{{author.full_name}}</span>
+ {{#with author}}
+ <span class="emoji_author panel_user_list">{{> ../user_display_only_pill display_value=full_name img_src=avatar_url}}</span>
+ {{/with}}
{{else}}
<span class="emoji_author">{{t "Unknown author" }}</span>
{{/if}}