mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
We were still sorting them with the generic alphabetic sort due to the markup, despite passing in a custom sort to the `list_render` class. The `sort_email` helper often behaves like a generic alphabetic sort, so this fix is mostly just making the code do what it claims to do (and it's consistent with how we already sort active users). The nuance with emails is whether we display real emails or system-generated emails.
24 lines
1.2 KiB
Handlebars
24 lines
1.2 KiB
Handlebars
<div id="admin-bot-list" class="settings-section" data-name="bot-list-admin">
|
|
<div class="tip bot-settings-tip"></div>
|
|
<h3 class="inline-block">{{t "Bots" }}</h3>
|
|
<input type="text" class="search" placeholder="{{t 'Filter bots' }}" aria-label="{{t 'Filter bots' }}"/>
|
|
<div class="alert-notification" id="bot-field-status"></div>
|
|
<div class="clear-float"></div>
|
|
<div class="progressive-table-wrapper" data-simplebar>
|
|
<table class="table table-condensed table-striped wrapped-table">
|
|
<thead>
|
|
<th class="active" data-sort="alphabetic" data-sort-prop="full_name">{{t "Name" }}</th>
|
|
<th data-sort="email">{{t "Email" }}</th>
|
|
<th data-sort="bot_owner">{{t "Owner" }}</th>
|
|
<th data-sort="alphabetic" data-sort-prop="bot_type">{{t "Bot type" }}</th>
|
|
{{#if is_admin}}
|
|
<th class="actions">{{t "Actions" }}</th>
|
|
{{/if}}
|
|
</thead>
|
|
<tbody id="admin_bots_table" class="admin_bot_table required-text thick"
|
|
data-empty="{{t 'No bots match your current filter.' }}"></tbody>
|
|
</table>
|
|
</div>
|
|
<div id="admin_page_bots_loading_indicator"></div>
|
|
</div>
|