mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 04:34:04 +08:00
This feature allows admins to find what they are looking for in the admin interface via a search modal. This replaces the admin sidebar filter as the focus of the Ctrl+/ command, but the sidebar filter can also still be used. Perhaps at some point we may remove it or change the shortcut. The search modal presents the following data for filtering: * A list of all admin pages, the same as the sidebar, except also showing "third level" pages like "Email > Skipped" * All site settings * Themes * Components * Reports Admins can also filter which types of items are shown in the modal, for example hiding Settings if they know they are looking for a Page. In this PR, I also have the following fixes: * Site setting filters now clear when moving between filtered site setting pages, previously it was super sticky from Ember * Many translations were moved around, instead of being in various namespaces for the sidebar links and the admin page titles and descriptions, now everything is under `admin.config` namespace, this makes it way easier to reuse this text for pages, search, and sidebar, and if you change it in one place then it is changed everywhere. --------- Co-authored-by: Ella <ella.estigoy@gmail.com>
60 lines
No EOL
1.7 KiB
Handlebars
Vendored
60 lines
No EOL
1.7 KiB
Handlebars
Vendored
<div class="badges">
|
|
<DPageHeader
|
|
@titleLabel={{i18n "admin.config.badges.title"}}
|
|
@descriptionLabel={{i18n "admin.config.badges.header_description"}}
|
|
@learnMoreUrl="https://meta.discourse.org/t/understanding-and-using-badges/32540"
|
|
>
|
|
<:breadcrumbs>
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
<DBreadcrumbsItem
|
|
@path="/admin/badges"
|
|
@label={{i18n "admin.config.badges.title"}}
|
|
/>
|
|
</:breadcrumbs>
|
|
<:actions as |actions|>
|
|
<actions.Primary
|
|
@route="adminBadges.show"
|
|
@routeModels="new"
|
|
@icon="plus"
|
|
@label="admin.badges.new"
|
|
class="new-badge"
|
|
/>
|
|
|
|
<actions.Default
|
|
@route="adminBadges.award"
|
|
@routeModels="new"
|
|
@icon="upload"
|
|
@label="admin.badges.mass_award.title"
|
|
class="award-badge"
|
|
/>
|
|
|
|
<actions.Default
|
|
@action={{routeAction "editGroupings"}}
|
|
@title="admin.badges.group_settings"
|
|
@label="admin.badges.group_settings"
|
|
@icon="gear"
|
|
class="edit-groupings-btn"
|
|
/>
|
|
</:actions>
|
|
</DPageHeader>
|
|
|
|
<div class="admin-container">
|
|
<div class="content-list">
|
|
<ul class="admin-badge-list">
|
|
{{#each this.model as |badge|}}
|
|
<li class="admin-badge-list-item">
|
|
<LinkTo @route={{this.selectedRoute}} @model={{badge.id}}>
|
|
<BadgeButton @badge={{badge}} />
|
|
{{#if badge.newBadge}}
|
|
<span class="list-badge">{{i18n
|
|
"filters.new.lower_title"
|
|
}}</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
{{outlet}}
|
|
</div>
|
|
</div> |