Files
zulip/web/templates/settings/emoji_settings_admin.hbs
2025-04-02 13:14:07 -07:00

36 lines
1.7 KiB
Handlebars

<div id="emoji-settings" data-name="emoji-settings" class="settings-section">
<div class="emoji-settings-tip-container {{#if can_add_emojis}}hide{{/if}}">
<div class="tip">{{t "You do not have permission to add custom emoji."}}</div>
</div>
<p class="add-emoji-text {{#unless can_add_emojis}}hide{{/unless}}">
{{t "Add extra emoji for members of the {realm_name} organization." }}
</p>
{{> ../components/action_button
id="add-custom-emoji-button"
attention="quiet"
intent="brand"
label=(t "Add a new emoji")
hidden=(not can_add_emojis)
}}
<div class="settings_panel_list_header">
<h3>{{t "Custom emoji"}}</h3>
{{> filter_text_input placeholder=(t 'Filter') aria_label=(t 'Filter emoji')}}
</div>
<div class="progressive-table-wrapper" data-simplebar data-simplebar-tab-index="-1">
<table class="table table-striped wrapped-table admin_emoji_table">
<thead class="table-sticky-headers">
<th class="active" data-sort="alphabetic" data-sort-prop="name">{{t "Name" }}
<i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
</th>
<th class="image">{{t "Image" }}</th>
<th class="image" data-sort="author_full_name">{{t "Author" }}
<i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
</th>
<th class="actions">{{t "Actions" }}</th>
</thead>
<tbody id="admin_emoji_table" data-empty="{{t 'There are no custom emoji.' }}" data-search-results-empty="{{t 'No custom emojis match your current filter.' }}"></tbody>
</table>
</div>
</div>