discourse/app/assets/javascripts/admin/addon/templates/email.hbs
Martin Brennan e26a1175d7
FEATURE: Initial version of experimental admin search (#31299)
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>
2025-02-21 11:59:24 +10:00

52 lines
No EOL
1.4 KiB
Handlebars
Vendored

<DPageHeader
@titleLabel={{i18n "admin.config.email.title"}}
@descriptionLabel={{i18n "admin.config.email.header_description"}}
@shouldDisplay={{true}}
>
<:breadcrumbs>
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
<DBreadcrumbsItem
@path="/admin/email"
@label={{i18n "admin.config.email.title"}}
/>
</:breadcrumbs>
<:tabs>
<NavItem @route="adminEmail.index" @label="settings" />
<NavItem
@route="adminEmail.previewDigest"
@label="admin.config.email.sub_pages.preview_summary.title"
/>
<NavItem
@route="adminEmail.advancedTest"
@label="admin.config.email.sub_pages.advanced_test.title"
/>
<NavItem
@route="adminEmailTemplates"
@label="admin.config.email.sub_pages.templates.title"
/>
<NavItem
@route="adminEmail.sent"
@label="admin.config.email.sub_pages.sent.title"
/>
<NavItem
@route="adminEmail.skipped"
@label="admin.config.email.sub_pages.skipped.title"
/>
<NavItem
@route="adminEmail.bounced"
@label="admin.config.email.sub_pages.bounced.title"
/>
<NavItem
@route="adminEmail.received"
@label="admin.config.email.sub_pages.received.title"
/>
<NavItem
@route="adminEmail.rejected"
@label="admin.config.email.sub_pages.rejected.title"
/>
</:tabs>
</DPageHeader>
<div class="admin-container">
{{outlet}}
</div>